Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼3.87ms] Passed 4 tests
A check of server-side resources used by SP Framework
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.28 | 39.92 ▼1.50 |
Dashboard /wp-admin | 3.61 ▲0.30 | 57.98 ▼8.90 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 54.35 ▼3.36 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 90.69 ▼1.71 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 38.15 ▼0.19 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SP Framework
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,966 ▲195 | 14.80 ▲0.57 | 2.04 ▲0.12 | 44.07 ▲2.99 |
Dashboard /wp-admin | 2,350 ▲162 | 6.49 ▲0.63 | 124.39 ▼9.43 | 43.13 ▼4.63 |
Posts /wp-admin/edit.php | 2,256 ▲164 | 3.54 ▲1.53 | 53.90 ▲14.09 | 32.61 ▼0.55 |
Add New Post /wp-admin/post-new.php | 1,522 ▼11 | 23.24 ▲0.10 | 644.30 ▼13.48 | 35.31 ▼32.67 |
Media Library /wp-admin/upload.php | 1,383 ▼2 | 4.15 ▼0.05 | 86.34 ▼20.51 | 43.50 ▼9.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'SP_Framework_Main' not found in wp-content/plugins/sp-framework/classes/class-sp-framework-post-type-meta-box.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sp-framework/sp-framework.php:14
- > PHP Fatal error
Uncaught Error: Class 'SP_Framework_Main' not found in wp-content/plugins/sp-framework/classes/class-sp-framework-post-type.php:2
- > PHP Fatal error
Uncaught Error: Class 'SP_Framework_Main' not found in wp-content/plugins/sp-framework/classes/class-sp-framework-taxonomy.php:2
- > PHP Fatal error
Uncaught Error: Class 'SP_Framework_Main' not found in wp-content/plugins/sp-framework/classes/class-sp-framework-admin-meta-box.php:2
- > PHP Fatal error
Uncaught Error: Class 'SP_Framework_Main' not found in wp-content/plugins/sp-framework/classes/class-sp-framework-enqueue.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sp-framework/classes/class-sp-framework-init.php:19
- > PHP Fatal error
Uncaught Error: Class 'SP_Framework_Main' not found in wp-content/plugins/sp-framework/classes/class-sp-framework-user-meta-box.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sp-framework/classes/class-sp-framework-widget.php:2
- > PHP Fatal error
Uncaught Error: Class 'SP_Framework_Main' not found in wp-content/plugins/sp-framework/classes/class-sp-framework-taxonomy-meta-box.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 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: development, framework
sp-framework/sp-framework.php 92% from 13 tests
This is the main PHP file of "SP Framework" version 2.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,904 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 356 | 50 | 1,565 |
JavaScript | 1 | 64 | 0 | 167 |
PO File | 2 | 56 | 144 | 150 |
CSS | 1 | 4 | 0 | 22 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 12.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 21 | |
▷ Abstract classes | 2 | 9.52% |
▷ Concrete classes | 19 | 90.48% |
▷ Final classes | 0 | 0.00% |
Methods | 85 | |
▷ Static methods | 24 | 28.24% |
▷ Public methods | 52 | 61.18% |
▷ Protected methods | 1 | 1.18% |
▷ Private methods | 32 | 37.65% |
Functions | 35 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 35 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/none.png | 11.47KB | 4.58KB | ▼ 60.09% |