Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.44ms] Passed 4 tests
This is a short check of server-side resources used by Mathematica Toolbox
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.09 ▼5.70 |
Dashboard /wp-admin | 3.33 ▲0.03 | 50.15 ▼0.22 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 52.99 ▲5.48 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 97.51 ▼7.19 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 40.94 ▲3.34 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Mathematica Toolbox: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,960 ▲199 | 15.19 ▲0.61 | 15.49 ▲13.65 | 40.86 ▼6.01 |
Dashboard /wp-admin | 2,225 ▲25 | 5.86 ▲0.99 | 114.77 ▲8.36 | 46.60 ▲6.86 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.00 ▼0.17 | 40.50 ▲4.00 | 33.89 ▼3.62 |
Add New Post /wp-admin/post-new.php | 6,308 ▲4,782 | 25.83 ▲8.01 | 933.52 ▲235.75 | 63.17 ▲4.59 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.28 ▲0.07 | 105.54 ▲2.07 | 47.23 ▲0.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/mathematica-toolbox/public/Mathematica-WP-Toolbox-API.php+135
Invalid argument supplied for foreach()
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- mma_transient_keys
- theysaidso_admin_options
- widget_recent-comments
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Mathematica_WP_Toolbox_API' not found in wp-content/plugins/mathematica-toolbox/public/Mathematica-WP-Toolbox-API-general.php:26
- > PHP Fatal error
Uncaught Error: Class 'Mathematica_WP_Toolbox_API' not found in wp-content/plugins/mathematica-toolbox/public/Mathematica-WP-Toolbox-API-user.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== mathematica-toolbox ===
) - Donate link: Invalid url: ""
mathematica-toolbox/Mathematica-Toolbox.php 85% from 13 tests
The main PHP file in "Mathematica Toolbox" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 301 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("mathematica-toolbox.php" instead of "Mathematica-Toolbox.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,324 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 282 | 666 | 1,057 |
JavaScript | 6 | 57 | 29 | 180 |
CSS | 4 | 17 | 9 | 87 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 8.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 1.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 1 | 2.44% |
▷ Public methods | 32 | 78.05% |
▷ Protected methods | 4 | 9.76% |
▷ Private methods | 5 | 12.20% |
Functions | 16 | |
▷ Named functions | 2 | 12.50% |
▷ Anonymous functions | 14 | 87.50% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/default.png | 6.54KB | 3.25KB | ▼ 50.31% |