Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▼0.17ms] Passed 4 tests
Server-side resources used by Punchlist
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 37.11 ▲0.91 |
Dashboard /wp-admin | 3.46 ▲0.16 | 45.71 ▲0.44 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 48.97 ▲1.36 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 87.13 ▼3.40 |
Media Library /wp-admin/upload.php | 3.38 ▲0.16 | 37.00 ▲2.99 |
Server storage [IO: ▲1.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 181 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Punchlist
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,962 ▲176 | 13.33 ▼0.64 | 17.01 ▲15.13 | 40.47 ▲0.73 |
Dashboard /wp-admin | 2,316 ▲139 | 5.67 ▲0.07 | 99.63 ▲10.22 | 42.68 ▼2.71 |
Posts /wp-admin/edit.php | 2,222 ▲143 | 2.08 ▲0.06 | 38.45 ▲2.53 | 36.07 ▲4.92 |
Add New Post /wp-admin/post-new.php | 6,276 ▲4,747 | 26.06 ▲2.96 | 862.10 ▲254.48 | 88.39 ▲38.65 |
Media Library /wp-admin/upload.php | 1,518 ▲118 | 4.30 ▲0.15 | 106.10 ▲4.73 | 45.58 ▲0.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 51× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/punchlist/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/punchlist/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:14
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/punchlist/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:13
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\ClientInterface' not found in wp-content/plugins/punchlist/vendor/guzzlehttp/guzzle/src/Client.php:17
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/punchlist/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Cookie\\CookieJarInterface' not found in wp-content/plugins/punchlist/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/punchlist/vendor/guzzlehttp/psr7/src/Request.php:15
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/punchlist/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/punchlist/vendor/guzzlehttp/psr7/src/FnStream.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/punchlist/vendor/guzzlehttp/psr7/src/CachingStream.php:13
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Admin page), #2 (Editor)
punchlist/bootstrap.php 92% from 13 tests
The main PHP script in "Punchlist" version 1.4.4 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("punchlist.php" instead of "bootstrap.php")
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
Good job! No executable or dangerous file extensions detected15,272 lines of code in 162 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 127 | 2,108 | 5,781 | 10,376 |
Markdown | 16 | 1,280 | 0 | 3,667 |
JSON | 13 | 1 | 0 | 1,063 |
JavaScript | 2 | 8 | 0 | 97 |
CSS | 1 | 8 | 0 | 31 |
SVG | 1 | 0 | 0 | 22 |
make | 1 | 4 | 0 | 9 |
YAML | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 12.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 26 | |
Traits | 3 | |
Classes | 82 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 82 | 100.00% |
▷ Final classes | 35 | 42.68% |
Methods | 766 | |
▷ Static methods | 146 | 19.06% |
▷ Public methods | 648 | 84.60% |
▷ Protected methods | 5 | 0.65% |
▷ Private methods | 113 | 14.75% |
Functions | 134 | |
▷ Named functions | 43 | 32.09% |
▷ Anonymous functions | 91 | 67.91% |
Constants | 63 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 63 | 100.00% |
▷ Public constants | 52 | 82.54% |
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
4 PNG files occupy 0.19MB with 0.13MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 67.72KB | 20.34KB | ▼ 69.97% |
assets/banner-772x250.png | 30.54KB | 10.25KB | ▼ 66.44% |
assets/screenshot-1.png | 86.92KB | 22.03KB | ▼ 74.65% |
assets/icon-256x256.png | 6.33KB | 2.70KB | ▼ 57.30% |