84% mango-ssl

Code Review | Mango ssl

WordPress plugin Mango ssl scored84%from 54 tests.

About plugin

  • Plugin page: mango-ssl
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2.1
  • WordPress version: 6.3.1
  • First release: Apr 17, 2018
  • Latest release: Jun 16, 2019
  • Number of updates: 5
  • Update frequency: every 85.2 days
  • Top authors: mangossl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /614 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.62ms] Passed 4 tests

Analyzing server-side resources used by Mango ssl
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0534.24 ▼5.96
Dashboard /wp-admin3.36 ▲0.0648.36 ▲2.58
Posts /wp-admin/edit.php3.47 ▲0.1243.96 ▼3.82
Add New Post /wp-admin/post-new.php5.94 ▲0.0682.29 ▼6.52
Media Library /wp-admin/upload.php3.28 ▲0.0633.77 ▼2.18
Mango setup /wp-admin/options-general.php?page=sub-page3.2528.96

Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Mango ssl
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.72 ▲0.171.89 ▼0.0236.92 ▼7.27
Dashboard /wp-admin2,204 ▲335.56 ▼0.0396.18 ▼4.7645.09 ▼2.77
Posts /wp-admin/edit.php2,106 ▲32.15 ▲0.1634.86 ▼5.1533.43 ▼3.13
Add New Post /wp-admin/post-new.php1,540 ▲1418.10 ▼4.96622.55 ▼8.3080.28 ▲30.61
Media Library /wp-admin/upload.php1,400 ▼04.38 ▲0.18101.99 ▼3.7342.38 ▼1.64
Mango setup /wp-admin/options-general.php?page=sub-page8062.0023.6426.23

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mango-ssl/mango-ssl_order.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mango-ssl/mango-ssl_order.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Donate link: Invalid url: "www.mangossl.com"
  • Screenshots: Screenshot #1 (Screenshot of the setup menu to authenticate mango user:) image not found
You can take inspiration from this readme.txt

mango-ssl/mango-ssl.php Passed 13 tests

The main PHP file in "Mango ssl" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
137 characters long description:
Mango ssl plugin sends all the order changes entered in WooCommerce to mango(www.mangossl.com) to avoid reentering those orders manually.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected371 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP311845366
CSS1005

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity4.57
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity3.78
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png40.17KB16.50KB▼ 58.92%