Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.20MB] [CPU: ▼4.73ms] Passed 4 tests
Server-side resources used by Peakhour
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 35.55 ▼0.73 |
Dashboard /wp-admin | 3.57 ▲0.26 | 48.15 ▼2.50 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 51.26 ▼0.17 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 80.88 ▼15.51 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 34.08 ▲1.84 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
peakhour-settings |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Peakhour
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲70 | 13.23 ▼1.07 | 5.71 ▲3.71 | 43.36 ▲1.79 |
Dashboard /wp-admin | 2,222 ▲37 | 4.85 ▼1.01 | 105.28 ▲2.93 | 39.33 ▼5.64 |
Posts /wp-admin/edit.php | 2,102 ▲10 | 2.05 ▲0.04 | 39.02 ▼6.67 | 35.86 ▼1.90 |
Add New Post /wp-admin/post-new.php | 1,546 ▲18 | 22.94 ▲4.45 | 648.17 ▲35.41 | 57.56 ▲3.05 |
Media Library /wp-admin/upload.php | 1,398 ▲7 | 4.14 ▼0.07 | 98.71 ▲2.82 | 40.86 ▼2.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/peakhour/includes/class-peakhour-api.php
- > /wp-content/plugins/peakhour/includes/class-peakhour-cdn.php
- > /wp-content/plugins/peakhour/includes/class-peakhour-settings.php
- > /wp-content/plugins/peakhour/includes/class-peakhour-settings-page.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Peakhour_Header' not found in wp-content/plugins/peakhour/includes/class-peakhour-cache-tags-header.php:12
- > PHP Fatal error
Uncaught Error: Class 'Peakhour_Settings' not found in wp-content/plugins/peakhour/includes/class-peakhour-remove-query-strings.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Requires php: Version format is invalid
- Plugin Name: You should set the name of your plugin on the first line (
=== peakhour ===
)
peakhour/peakhour.php Passed 13 tests
The main PHP file in "Peakhour" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
74 characters long description:
Integrate your Wordpress installation with peakhour.io website accelerator
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,356 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 265 | 391 | 1,138 |
Markdown | 1 | 46 | 0 | 218 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 1.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 1 | 10.00% |
▷ Concrete classes | 9 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 96 | |
▷ Static methods | 7 | 7.29% |
▷ Public methods | 90 | 93.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 6.25% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin