84% joomdev-wp-pros-cons

Code Review | Mighty Classic Pros And Cons

WordPress plugin Mighty Classic Pros And Cons scored84%from 54 tests.

About plugin

  • Plugin page: joomdev-wp-pros-cons
  • Plugin version: 2.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 29, 2018
  • Latest release: Oct 2, 2023
  • Number of updates: 30
  • Update frequency: every 69.2 days
  • Top authors: mightythemes1 (56.67%)joomdev (46.67%)

Code review

54 tests

User reviews

18 reviews

Install metrics

2,000+ active /25,665 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼10.34ms] Passed 4 tests

Server-side resources used by Mighty Classic Pros And Cons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0934.75 ▼1.08
Dashboard /wp-admin3.41 ▲0.0641.85 ▼18.03
Posts /wp-admin/edit.php3.45 ▲0.0949.51 ▼0.64
Add New Post /wp-admin/post-new.php6.00 ▲0.1184.81 ▼21.62
Media Library /wp-admin/upload.php3.33 ▲0.1034.11 ▲0.36

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Mighty Classic Pros And Cons
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,271 ▲52513.57 ▼0.781.54 ▼0.3028.07 ▼12.97
Dashboard /wp-admin2,678 ▲4895.31 ▲0.38119.20 ▼0.04113.48 ▲70.42
Posts /wp-admin/edit.php2,562 ▲4702.51 ▲0.4537.38 ▼3.8367.05 ▲31.72
Add New Post /wp-admin/post-new.php1,979 ▲45123.26 ▲4.64653.26 ▲30.42144.43 ▲74.56
Media Library /wp-admin/upload.php1,850 ▲4594.72 ▲0.5398.18 ▲2.6094.23 ▲52.69

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/joomdev-wp-pros-cons/admin/joomdev-wpc-options.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/joomdev-wp-pros-cons/admin/joomdev-wpc-options.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/joomdev-wp-pros-cons/joomdev-wpc-shortcodes.php:4

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (Screen shot to display settings.), #4 (Screen shot to display shortcode.), #5 (Frontend Screenshot.)
You can take inspiration from this readme.txt

joomdev-wp-pros-cons/joomdev-wp-pros-cons.php 92% from 13 tests

The main PHP script in "Mighty Classic Pros And Cons" version 2.0.9 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 148 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,162 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP410250886
CSS2502234
JavaScript2121238
SVG4004

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/thumbs-up-icon.png2.26KB1.67KB▼ 26.02%
admin/assets/images/joomdev-wpc.png3.45KB2.00KB▼ 42.07%
assets/img/check.png1.23KB0.48KB▼ 60.51%
admin/assets/images/font-awesome_4-7-0_shopping-cart_256_0_ffffff_none.png2.56KB2.57KB0.00%
assets/img/thumbs-down-icon.png2.25KB1.67KB▼ 25.69%