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
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.01ms] Passed 4 tests
An overview of server-side resources used by Speed Bumps
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 34.32 ▼7.55 |
Dashboard /wp-admin | 3.35 ▲0.05 | 45.88 ▼1.98 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 51.11 ▲4.78 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 93.42 ▼3.01 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.77 ▲0.52 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Speed Bumps
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.22 ▼1.16 | 1.79 ▼0.02 | 47.06 ▲5.09 |
Dashboard /wp-admin | 2,209 ▲24 | 4.85 ▼0.05 | 108.15 ▲1.96 | 39.66 ▼5.68 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.02 | 40.00 ▼1.01 | 40.37 ▲2.63 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.61 ▲5.54 | 607.94 ▼39.80 | 52.34 ▼0.65 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.28 ▲0.09 | 99.54 ▼3.94 | 42.63 ▲0.72 |
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
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means 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
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Speed_Bumps\\Constraints\\Elements\\Constraint_Abstract' not found in wp-content/plugins/speed-bumps/inc/constraints/elements/class-blockquote.php:4
- > PHP Fatal error
Uncaught Error: Class 'Speed_Bumps\\Constraints\\Elements\\Constraint_Abstract' not found in wp-content/plugins/speed-bumps/inc/constraints/elements/class-shortcode.php:4
- > PHP Fatal error
Uncaught Error: Class 'Speed_Bumps\\Constraints\\Elements\\Constraint_Abstract' not found in wp-content/plugins/speed-bumps/inc/constraints/elements/class-oembed.php:4
- > PHP Fatal error
Uncaught Error: Class 'Speed_Bumps\\Constraints\\Elements\\Constraint_Abstract' not found in wp-content/plugins/speed-bumps/inc/constraints/elements/class-iframe.php:4
- > PHP Fatal error
Uncaught Error: Class 'Speed_Bumps\\Constraints\\Elements\\Constraint_Abstract' not found in wp-content/plugins/speed-bumps/inc/constraints/elements/class-header.php:4
- > PHP Fatal error
Uncaught Error: Class 'Speed_Bumps\\Constraints\\Elements\\Constraint_Abstract' not found in wp-content/plugins/speed-bumps/inc/constraints/elements/class-dummy.php:4
- > PHP Fatal error
Uncaught Error: Class 'Speed_Bumps\\Constraints\\Elements\\Constraint_Abstract' not found in wp-content/plugins/speed-bumps/inc/constraints/elements/class-image.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/speed-bumps/speed-bumps.php:462
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: recirculation, content, advertising
speed-bumps/speed-bumps.php Passed 13 tests
The main file in "Speed Bumps" v. 0.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
52 characters long description:
A Plugin to insert a piece of content intelligently.
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
No dangerous file extensions were detected707 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 184 | 305 | 593 |
Markdown | 1 | 47 | 0 | 79 |
JavaScript | 1 | 9 | 32 | 23 |
JSON | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 7.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 1 | 6.67% |
▷ Concrete classes | 14 | 93.33% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 29 | 58.00% |
▷ Public methods | 46 | 92.00% |
▷ Protected methods | 1 | 2.00% |
▷ Private methods | 3 | 6.00% |
Functions | 7 | |
▷ Named functions | 4 | 57.14% |
▷ Anonymous functions | 3 | 42.86% |
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
PNG images were not found in this plugin