90% mpandco

Code Review | mPandco

WordPress plugin mPandco scored90%from 54 tests.

About plugin

  • Plugin page: mpandco
  • Plugin version: 1.0.11
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.1-5.2
  • WordPress version: 6.3.1
  • First release: May 17, 2019
  • Latest release: May 18, 2019
  • Number of updates: 8
  • Update frequency: every 0.1 days
  • Top authors: mpandco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /587 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.72ms] Passed 4 tests

This is a short check of server-side resources used by mPandco
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.19 ▼13.29
Dashboard /wp-admin3.31 ▲0.0044.38 ▼10.69
Posts /wp-admin/edit.php3.36 ▲0.0044.95 ▼4.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.41 ▼6.20
Media Library /wp-admin/upload.php3.23 ▲0.0036.68 ▼0.94

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

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

Browser metrics Passed 4 tests

mPandco: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6713.22 ▼1.401.67 ▼0.5042.57 ▼0.52
Dashboard /wp-admin2,203 ▲125.83 ▲0.9799.97 ▼18.8139.36 ▼7.42
Posts /wp-admin/edit.php2,092 ▼01.99 ▼0.0035.24 ▼0.0432.90 ▼0.86
Add New Post /wp-admin/post-new.php1,524 ▲523.21 ▼0.20603.91 ▼55.9945.65 ▼7.47
Media Library /wp-admin/upload.php1,385 ▼34.21 ▼0.0594.76 ▲0.6841.09 ▼8.01

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (There are no screenshots.) image required
The official readme.txt might help

mpandco/mpandco.php Passed 13 tests

The principal PHP file in "mPandco" v. 1.0.11 is loaded by WordPress automatically on each request
52 characters long description:
Pasarela de pago mPandco compatible con woocommerce.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin2,415 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP274189631,869
PO File2120148363
CSS1210175
JSON2008

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity7.86
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity1.97
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes21
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes00.00%
Methods149
▷ Static methods74.70%
▷ Public methods14697.99%
▷ Protected methods10.67%
▷ Private methods21.34%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants14
▷ Global constants00.00%
▷ Class constants14100.00%
▷ Public constants14100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/mpandco_logo_payment_gateway.png7.36KB4.11KB▼ 44.08%
assets/img/mpandco_PM_payment_gateway_small.png5.68KB1.58KB▼ 72.13%
assets/img/arrow_drop_down_white.png4.19KB0.25KB▼ 94.15%