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.06MB] [CPU: ▼6.34ms] Passed 4 tests
Analyzing server-side resources used by WP MathJax
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.91 ▼3.02 |
Dashboard /wp-admin | 3.36 ▲0.06 | 51.63 ▲1.38 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 53.15 ▼3.11 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 91.64 ▼20.59 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 40.45 ▲4.10 |
Server storage [IO: ▲23.29MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 794 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
WP MathJax: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲59 | 13.81 ▼0.61 | 2.23 ▼0.04 | 41.54 ▼0.91 |
Dashboard /wp-admin | 2,233 ▲42 | 5.63 ▲0.79 | 123.64 ▲13.85 | 39.20 ▼1.19 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 2.43 ▲0.37 | 59.52 ▲18.21 | 33.94 ▼2.87 |
Add New Post /wp-admin/post-new.php | 6,262 ▲4,740 | 21.17 ▼1.84 | 959.29 ▲289.13 | 39.25 ▼24.20 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.73 ▲0.55 | 117.48 ▲7.10 | 44.16 ▼0.47 |
WP MathJax /wp-admin/wp-mathjax.php | 26 | 0.44 | 0.09 | 15.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-mathjax-plus/inc/admin/setting.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-mathjax-plus/inc/smart-loader.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-mathjax-plus/inc/admin/menu.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-mathjax-plus/inc/shortcode.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-mathjax-plus/inc/block.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-mathjax-plus/inc/admin/register.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-mathjax-plus/inc/mathjax-js.php:12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/wp-mathjax.php
- > Network (severe)
wp-admin/wp-mathjax.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: katex, mathjax, latex, asciimath
wp-mathjax-plus/wp-mathjax.php 85% from 13 tests
Analyzing the main PHP file in "WP MathJax" version 1.0.1
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-mathjax-plus.php" instead of "wp-mathjax.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin8,328 lines of code in 782 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 765 | 970 | 15,090 | 7,564 |
PHP | 13 | 104 | 251 | 542 |
PO File | 3 | 81 | 84 | 207 |
CSS | 1 | 4 | 8 | 15 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.21MB with 0.14MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/example-gutenberg-block-1.png | 65.72KB | 24.38KB | ▼ 62.90% |
assets/example-gutenberg-block-4.png | 51.96KB | 18.77KB | ▼ 63.87% |
assets/example-gutenberg-block-3.png | 56.68KB | 19.85KB | ▼ 64.98% |
assets/example-gutenberg-block-2.png | 44.31KB | 16.65KB | ▼ 62.43% |