Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.29ms] Passed 4 tests
A check of server-side resources used by MathML Block
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 38.10 ▼3.67 |
Dashboard /wp-admin | 3.34 ▼0.01 | 47.27 ▼17.74 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.71 ▼2.80 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 96.25 ▼8.95 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 42.85 ▲5.32 |
Server storage [IO: ▲19.95MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 1,384 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
MathML Block: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.40 ▼0.03 | 1.74 ▼0.03 | 39.99 ▲0.61 |
Dashboard /wp-admin | 2,195 ▲14 | 5.66 ▼0.08 | 86.46 ▼52.34 | 44.30 ▼14.05 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▼0.02 | 41.99 ▲5.70 | 43.20 ▲10.05 |
Add New Post /wp-admin/post-new.php | 6,220 ▲4,687 | 19.99 ▼3.50 | 945.67 ▲268.64 | 38.75 ▼23.14 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.25 ▲0.05 | 113.53 ▲8.20 | 47.58 ▲2.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after 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 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function MathMLBlock\\add_action() in wp-content/plugins/mathml-block/mathml-block.php:68
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: mathml, gutenberg, block editor, math, block
mathml-block/mathml-block.php Passed 13 tests
The principal PHP file in "MathML Block" v. 1.2.2 is loaded by WordPress automatically on each request
24 characters long description:
Display MathML formulas.
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
No dangerous file extensions were detected160,902 lines of code in 1,369 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1,361 | 7,825 | 34,183 | 143,023 |
JSON | 4 | 0 | 0 | 17,723 |
PHP | 1 | 24 | 63 | 124 |
YAML | 1 | 0 | 0 | 17 |
Markdown | 1 | 9 | 0 | 12 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 1 | |
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 | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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
5 PNG files occupy 0.22MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 15.19KB | 7.43KB | ▼ 51.10% |
assets/screenshot-1.png | 60.41KB | 17.46KB | ▼ 71.09% |
assets/icon-128x128.png | 5.01KB | 2.48KB | ▼ 50.54% |
assets/banner-1544x500.png | 103.58KB | 33.38KB | ▼ 67.77% |
assets/banner-772x250.png | 39.06KB | 12.72KB | ▼ 67.44% |