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.08MB] [CPU: ▲0.08ms] Passed 4 tests
Analyzing server-side resources used by Pocket WP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 43.56 ▲2.07 |
Dashboard /wp-admin | 3.39 ▲0.08 | 52.47 ▲4.17 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 53.28 ▲1.46 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 117.37 ▲17.25 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 38.34 ▼7.37 |
Pocket WP /wp-admin/options-general.php?page=pocket_wp | 3.25 | 32.67 |
Server storage [IO: ▲0.67MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
pwp_activation_run |
can_compress_scripts |
widget_recent-posts |
widget_pwp_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Pocket WP: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲26 | 13.31 ▲0.01 | 1.67 ▼2.56 | 40.39 ▼2.42 |
Dashboard /wp-admin | 2,210 ▲7 | 4.86 ▼0.04 | 104.71 ▼8.32 | 40.88 ▼6.83 |
Posts /wp-admin/edit.php | 2,099 ▲10 | 2.05 ▲0.04 | 42.27 ▲2.68 | 36.74 ▲1.27 |
Add New Post /wp-admin/post-new.php | 1,540 ▲26 | 22.91 ▲5.27 | 583.00 ▼204.65 | 56.59 ▼1.27 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.26 ▼0.05 | 98.97 ▼12.89 | 41.73 ▼4.16 |
Pocket WP /wp-admin/options-general.php?page=pocket_wp | 871 | 1.68 | 27.16 | 40.20 |
Uninstaller [IO: ✅] [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
You still need to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_pwp_widget
- widget_recent-posts
- widget_theysaidso_widget
- pwp_activation_run
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=pocket_wp
- > Notice in wp-content/plugins/pocket-wp/pocket-wp.php+161
Trying to access array offset on value of type bool
SRP 50% 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
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/pocket-wp/pocket-wp.php
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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: widget, links, pocket, shortcode
pocket-wp/pocket-wp.php Passed 13 tests
"Pocket WP" version 0.4.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
99 characters long description:
Adds a shortcode and widget which allows you to display your pocket links in a WordPress page/post.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected405 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 118 | 89 | 383 |
CSS | 1 | 4 | 0 | 22 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 18.50 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 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 | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.64MB with 0.44MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshots/screenshot-5.png | 38.20KB | 12.11KB | ▼ 68.31% |
screenshots/screenshot-4.png | 51.36KB | 16.64KB | ▼ 67.60% |
screenshots/screenshot-1.png | 311.23KB | 109.70KB | ▼ 64.75% |
screenshots/screenshot-2.png | 207.30KB | 70.89KB | ▼ 65.80% |
screenshots/screenshot-3.png | 50.54KB | 12.59KB | ▼ 75.09% |