Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.45ms] Passed 4 tests
An overview of server-side resources used by Insert math
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 45.02 ▲5.61 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.99 ▼1.10 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.43 ▼0.16 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 87.14 ▼2.76 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.25 ▼1.79 |
Server storage [IO: ▲1.45MB] [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: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Insert math
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,389 ▲654 | 18.24 ▲3.88 | 36.13 ▲33.99 | 50.36 ▲7.03 |
Dashboard /wp-admin | 2,453 ▲265 | 7.04 ▲1.16 | 168.21 ▲66.36 | 100.86 ▲57.78 |
Posts /wp-admin/edit.php | 2,350 ▲261 | 4.25 ▲2.23 | 96.71 ▲57.35 | 94.84 ▲57.54 |
Add New Post /wp-admin/post-new.php | 6,548 ▲5,026 | 28.13 ▲4.84 | 1,005.87 ▲337.22 | 95.99 ▲41.67 |
Media Library /wp-admin/upload.php | 1,638 ▲247 | 5.96 ▲1.77 | 160.54 ▲59.52 | 110.60 ▲67.24 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Please 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 plugin_dir_url() in wp-content/plugins/insert-math/insert-math.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: math, tex, latex, formula, insert formula...
insert-math/insert-math.php Passed 13 tests
The main PHP script in "Insert math" version 2.0 is automatically included on every request by WordPress
54 characters long description:
Fast and handy insert any math formulas in your posts.
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
Good job! No executable or dangerous file extensions detected1,333 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 41 | 48 | 1,225 |
PHP | 1 | 33 | 30 | 103 |
JavaScript | 3 | 0 | 0 | 3 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
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 | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 1.35MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
jquery-ui-css/images/ui-icons_555555_256x240.png | 6.84KB | 4.18KB | ▼ 38.84% |
assets/screenshot-2.png | 331.32KB | 185.82KB | ▼ 43.92% |
assets/screenshot-1.png | 406.54KB | 214.14KB | ▼ 47.33% |
jquery-ui-css/images/ui-icons_cc0000_256x240.png | 4.52KB | 4.18KB | ▼ 7.56% |
jquery-ui-css/images/ui-icons_777620_256x240.png | 4.52KB | 4.18KB | ▼ 7.58% |