Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼4.22ms] Passed 4 tests
An overview of server-side resources used by Wall
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 42.11 ▼1.21 |
Dashboard /wp-admin | 3.40 ▲0.10 | 53.63 ▼0.62 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 49.33 ▼13.22 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 95.65 ▼1.82 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.61 ▲3.72 |
Wall /wp-admin/options-general.php?page=mindspun-wall | 3.30 | 36.40 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wall
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.72 ▲0.36 | 1.98 ▲0.25 | 44.24 ▼1.92 |
Dashboard /wp-admin | 2,202 ▲22 | 5.58 ▼0.05 | 91.12 ▼1.93 | 41.90 ▼2.48 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▼0.04 | 35.93 ▼1.64 | 34.27 ▼2.92 |
Add New Post /wp-admin/post-new.php | 1,557 ▲12 | 18.15 ▼2.87 | 595.84 ▼29.30 | 59.05 ▲5.34 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.39 ▲0.05 | 97.71 ▼12.26 | 44.43 ▼2.40 |
Wall /wp-admin/options-general.php?page=mindspun-wall | 844 | 2.05 | 25.54 | 27.03 |
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 detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
Almost there! Just fix the following items
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'mindspun\\wall\\admin\\Field' not found in wp-content/plugins/wall-by-mindspun/src/admin/fields/LandingPageField.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function mindspun\\wall\\get_option() in wp-content/plugins/wall-by-mindspun/src/Settings.php:49
- > PHP Fatal error
Uncaught Error: Class 'mindspun\\wall\\admin\\Field' not found in wp-content/plugins/wall-by-mindspun/src/admin/fields/EnabledField.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/wall-by-mindspun/templates/wall-landing-page.php:12
- > PHP Fatal error
Uncaught Error: Class 'mindspun\\wall\\admin\\Field' not found in wp-content/plugins/wall-by-mindspun/src/admin/fields/SecretField.php:13
- > PHP Fatal error
Uncaught Error: Class 'mindspun\\wall\\admin\\Field' not found in wp-content/plugins/wall-by-mindspun/src/admin/fields/LoginRedirectField.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: private, visibility, login
wall-by-mindspun/wall.php 92% from 13 tests
This is the main PHP file of "Wall" version 0.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wall-by-mindspun.php" instead of "wall.php")
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
Good job! No executable or dangerous file extensions detected476 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 102 | 350 | 475 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 5.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 1.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 1 | 9.09% |
▷ Concrete classes | 10 | 90.91% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 50 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected