Benchmarks
Plugin footprint Passed 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.00MB] [CPU: ▼870.83ms] Passed 4 tests
Server-side resources used by WP Contextual Help
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.71 ▼0.01 | 26.06 ▲3.98 |
Dashboard /wp-admin | 3.06 ▲0.01 | 46.86 ▼6.52 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 43.42 ▲0.66 |
Add New Post /wp-admin/post-new.php | 5.43 ▲0.11 | 1,609.31 ▼3,481.44 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 40.15 ▲7.37 |
Server storage [IO: ▲0.03MB] [DB: ▲0.71MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Contextual Help
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,647 ▲41 | 15.86 ▲0.42 | 18.38 ▲9.18 | 58.55 ▲8.90 |
Dashboard /wp-admin | 2,922 ▲69 | 6.06 ▲0.03 | 171.58 ▲22.88 | 105.82 ▼2.82 |
Posts /wp-admin/edit.php | 2,706 ▼0 | 2.69 ▲0.02 | 84.69 ▲13.24 | 102.99 ▲15.74 |
Add New Post /wp-admin/post-new.php | 1,656 ▲3 | 15.92 ▼2.71 | 408.29 ▲31.66 | 113.70 ▼6.12 |
Media Library /wp-admin/upload.php | 1,775 ▲3 | 5.02 ▼0.06 | 172.31 ▲24.00 | 135.09 ▲24.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.71MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-contextual-help/wp-contextual-help.php:141
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Example display of a custom help tab) image not found
wp-contextual-help/wp-contextual-help.php Passed 13 tests
The entry point to "WP Contextual Help" version 1.0.2 is a PHP file that has certain tags in its header comment area
90 characters long description:
Allows a developer to easily extend the contextual help dropdown content area in WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin88 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 20 | 35 | 88 |
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.47 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 4.40 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 5 | 100.00% |
▷ Public methods | 5 | 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 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 26.52KB | 11.41KB | ▼ 57.00% |