Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- The plugin did not install without errors
- > Compile error in wp-content/plugins/hercules-posts-list/hercules-framework/helpers/string/string.php+5
Cannot use 'String' as class name as it is reserved
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.41ms] Passed 4 tests
Server-side resources used by Hercules Posts List
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.06 ▼6.99 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.59 ▼1.02 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.57 ▲1.18 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 96.47 ▼2.16 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.35 ▲0.53 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 61 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Hercules Posts List: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.59 ▼0.79 | 4.49 ▲2.77 | 37.96 ▼3.41 |
Dashboard /wp-admin | 2,206 ▲21 | 5.85 ▲1.02 | 114.80 ▼1.90 | 43.30 ▼0.97 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.05 | 40.62 ▼0.80 | 36.10 ▼1.10 |
Add New Post /wp-admin/post-new.php | 1,534 ▲14 | 22.99 ▼0.05 | 668.89 ▲51.06 | 60.98 ▲11.17 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.18 ▼0.04 | 100.45 ▼4.66 | 44.22 ▼1.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/hercules-posts-list/views/post-settings/template.php
- > /wp-content/plugins/hercules-posts-list/views/posts-list/template.php
- > /wp-content/plugins/hercules-posts-list/plugin.php
- 28× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Hercules\\Helper' not found in wp-content/plugins/hercules-posts-list/hercules-framework/helpers/handlebars/handlebars.php:14
- > PHP Fatal error
Cannot use Handlebars\\String as String because 'String' is a special class name in wp-content/plugins/hercules-posts-list/hercules-framework/helpers/handlebars/src/Handlebars/Loader/StringLoader.php on line 22
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/hercules-posts-list/hercules-framework/helpers/handlebars/src/Handlebars/Tokenizer.php on line 167
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/hercules-posts-list/hercules-framework/helpers/handlebars/src/Handlebars/Tokenizer.php on line 213
- > PHP Fatal error
Uncaught Error: Interface 'Handlebars\\Helper' not found in wp-content/plugins/hercules-posts-list/hercules-framework/helpers/handlebars/src/Handlebars/Helper/IfEqHelper.php:39
- > PHP Fatal error
Uncaught Error: Class 'Hercules\\HercAbstract' not found in wp-content/plugins/hercules-posts-list/hercules-framework/core/Helper.php:3
- > PHP Fatal error
Uncaught Error: Interface 'Handlebars\\Helper' not found in wp-content/plugins/hercules-posts-list/hercules-framework/helpers/handlebars/src/Handlebars/Helper/UnlessHelper.php:39
- > PHP Fatal error
Uncaught Error: Interface 'Handlebars\\Cache' not found in wp-content/plugins/hercules-posts-list/hercules-framework/helpers/handlebars/src/Handlebars/Cache/APC.php:34
- > PHP Fatal error
Uncaught Error: Class 'Hercules\\HercAbstract' not found in wp-content/plugins/hercules-posts-list/hercules-framework/core/Model.php:3
- > PHP Fatal error
Uncaught Error: Interface 'Handlebars\\Helper' not found in wp-content/plugins/hercules-posts-list/hercules-framework/helpers/handlebars/src/Handlebars/Helper/IfHelper.php:39
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: hercules, categories, posts list
hercules-posts-list/plugin.php 92% from 13 tests
The main PHP script in "Hercules Posts List" version 1.2.3 is automatically included on every request by WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("hercules-posts-list.php" instead of "plugin.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
Success! There were no dangerous files found in this plugin2,632 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 45 | 594 | 2,262 | 2,631 |
CSS | 1 | 0 | 4 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 11.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 101.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 36 | |
▷ Abstract classes | 1 | 2.78% |
▷ Concrete classes | 35 | 97.22% |
▷ Final classes | 0 | 0.00% |
Methods | 202 | |
▷ Static methods | 2 | 0.99% |
▷ Public methods | 168 | 83.17% |
▷ Protected methods | 17 | 8.42% |
▷ Private methods | 17 | 8.42% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 33 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 33 | 100.00% |
▷ Public constants | 33 | 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
2 PNG files occupy 0.17MB with 0.11MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 123.14KB | 49.03KB | ▼ 60.18% |
screenshot-1.png | 51.66KB | 18.69KB | ▼ 63.81% |