Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.87ms] Passed 4 tests
A check of server-side resources used by MindCat
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 36.48 ▼9.78 |
Dashboard /wp-admin | 3.37 ▲0.06 | 46.54 ▼0.08 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 47.68 ▼1.11 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 91.64 ▲8.93 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 30.81 ▼0.49 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_mindcat_widget |
Browser metrics Passed 4 tests
A check of browser resources used by MindCat
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 13.27 ▼1.38 | 1.78 ▼0.18 | 40.45 ▼5.62 |
Dashboard /wp-admin | 2,206 ▲15 | 6.07 ▲1.18 | 105.61 ▼1.13 | 41.16 ▲1.02 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.05 | 40.08 ▲3.31 | 34.29 ▼1.03 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 18.22 ▲0.58 | 631.44 ▼50.68 | 53.03 ▲0.07 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.22 ▼0.03 | 98.13 ▲3.32 | 42.34 ▲0.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_mindcat_widget
- 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/mindcat/mindcat.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
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
4 plugin tags: category, mindmap, widget, categories
mindcat/mindcat.php Passed 13 tests
Analyzing the main PHP file in "MindCat" version 1.1.3
50 characters long description:
Displays categories and subcategories as a mindmap
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 detected425 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 28 | 18 | 240 |
CSS | 2 | 4 | 0 | 80 |
JavaScript | 2 | 25 | 4 | 60 |
PO File | 1 | 14 | 14 | 45 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 4.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin