73% mingus-jmpress

Code Review | Mingus Jmpress

WordPress plugin Mingus Jmpress scored73%from 54 tests.

About plugin

  • Plugin page: mingus-jmpress
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 22, 2014
  • Latest release: Oct 16, 2014
  • Number of updates: 9
  • Update frequency: every 3.2 days
  • Top authors: cocey (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /711 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼1.82MB] [CPU: ▼51.20ms] Passed 4 tests

This is a short check of server-side resources used by Mingus Jmpress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.16 ▼1.306.10 ▼30.60
Dashboard /wp-admin2.18 ▼1.126.37 ▼39.59
Posts /wp-admin/edit.php2.18 ▼1.177.10 ▼44.00
Add New Post /wp-admin/post-new.php2.18 ▼3.706.77 ▼90.62
Media Library /wp-admin/upload.php2.18 ▼1.046.64 ▼28.78

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Mingus Jmpress: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.17 ▼1.211.60 ▲0.0040.00 ▼1.74
Dashboard /wp-admin2,222 ▲345.89 ▲1.01105.44 ▲0.0145.19 ▲5.74
Posts /wp-admin/edit.php2,108 ▲192.05 ▼0.0139.18 ▲2.0434.04 ▼1.55
Add New Post /wp-admin/post-new.php1,545 ▲1523.21 ▲4.97652.43 ▼4.3854.61 ▼9.75
Media Library /wp-admin/upload.php1,407 ▲194.28 ▲0.08108.40 ▼0.6247.52 ▲3.39

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the userStylesheet handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
Good news, no errors were detected

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/mingus-jmpress/mingusjmpress.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tested up to: The plugin version is formatted incorrectly
  • Requires at least: The plugin version is formatted incorrectly
The official readme.txt might help

mingus-jmpress/mingusjmpress.php 92% from 13 tests

The principal PHP file in "Mingus Jmpress" v. 0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mingus-jmpress.php" instead of "mingusjmpress.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin834 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP45359633
CSS2226199
JavaScript10112

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity9.50
▷ Minimum class complexity3.00
▷ Maximum class complexity15.00
Average method complexity2.03
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods33
▷ Static methods13.03%
▷ Public methods3296.97%
▷ Protected methods00.00%
▷ Private methods13.03%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin