84% wm-jqmath

Code Review | WM JqMath

WordPress plugin WM JqMath scored84%from 54 tests.

About plugin

  • Plugin page: wm-jqmath
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.2.3
  • WordPress version: 6.3.1
  • First release: Jul 12, 2015
  • Latest release: Aug 5, 2015
  • Number of updates: 13
  • Update frequency: every 2.0 days
  • Top authors: webmind.pt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,293 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.42ms] Passed 4 tests

An overview of server-side resources used by WM JqMath
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.54 ▼5.23
Dashboard /wp-admin3.31 ▲0.0144.09 ▼8.00
Posts /wp-admin/edit.php3.36 ▲0.0144.93 ▼0.87
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.75 ▼8.05
Media Library /wp-admin/upload.php3.23 ▲0.0131.08 ▼4.41

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WM JqMath
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.24 ▼1.144.70 ▲2.8845.20 ▲0.55
Dashboard /wp-admin2,203 ▲285.79 ▲0.8894.67 ▼32.7343.19 ▼14.06
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0133.06 ▼1.7432.97 ▼1.04
Add New Post /wp-admin/post-new.php1,543 ▲2418.39 ▼4.55600.25 ▼87.5355.93 ▼13.06
Media Library /wp-admin/upload.php1,388 ▲64.21 ▼0.1394.85 ▼4.0941.25 ▼0.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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wm-jqmath/wm_jqmath.php:38

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, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: plugin, webmind, jqmath, wordpress, wm

wm-jqmath/wm_jqmath.php 92% from 13 tests

The entry point to "WM JqMath" version 1.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wm-jqmath.php" instead of "wm_jqmath.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
Good job! No executable or dangerous file extensions detected131 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS1208111
PHP171418
JavaScript1022

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin