Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.68ms] Passed 4 tests
A check of server-side resources used by Pocket Read it Later Button
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.20 ▼0.18 |
Dashboard /wp-admin | 3.33 ▲0.03 | 44.07 ▼6.58 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.55 ▲3.10 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 88.58 ▼3.77 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 34.67 ▼0.18 |
Pocket Read it Later Button /wp-admin/options-general.php?page=getpocket | 3.20 | 27.53 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Pocket Read it Later Button
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.48 ▲0.13 | 1.84 ▲0.11 | 42.80 ▲3.45 |
Dashboard /wp-admin | 2,207 ▲19 | 5.77 ▲0.91 | 95.16 ▼10.15 | 37.24 ▼8.86 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.01 | 38.45 ▲3.04 | 35.47 ▼2.75 |
Add New Post /wp-admin/post-new.php | 1,552 ▲31 | 18.23 ▼5.07 | 627.58 ▼41.80 | 66.47 ▲14.03 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.24 ▲0.00 | 97.86 ▼8.12 | 43.31 ▼2.63 |
Pocket Read it Later Button /wp-admin/options-general.php?page=getpocket | 1,248 | 7.64 | 237.83 | 73.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=getpocket
- > Notice in wp-content/plugins/getpocket/class-admin.php+130
Undefined variable: domain
- > GET request to /wp-admin/options-general.php?page=getpocket
- > Warning in wp-content/plugins/getpocket/class-admin.php+139
Invalid argument supplied for foreach()
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 fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/getpocket/class-frontend.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/getpocket/class-admin.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/getpocket/getpocket.php:22
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=getpocket
- > Network (severe)
http://platform.stumbleupon.com/1/widgets.js - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- > GET request to /wp-admin/options-general.php?page=getpocket
- > Javascript (severe) in unknown
https://button.buffer.com/button/?id=90b71b89179a07e1&url=http%3A%2F%2F3doordigital.com%2Fwordpress%2Fplugins%2Fgetpocket-read-it-later-button%2F&text=Just%20been%20using%20Pocket%20Read%20it%20Later%20Button%20%23WordPress%20plugin&via=alexmoss&count=horizontal&placement=button&utm_source=http%3A%2F%2Fwp.com%2Fwp-admin%2Foptions-general.php%3Fpage%3Dgetpocket&utm_medium=buffer_button&utm_campaign=buffer 15:647 Uncaught TypeError: Cannot set properties of null (setting 'onclick')
- > GET request to /wp-admin/options-general.php?page=getpocket
- > Other (severe) in unknown
chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: pocket, read it later, getpocket, bookmarklet
getpocket/getpocket.php 92% from 13 tests
"Pocket Read it Later Button" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 231 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin259 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 32 | 18 | 158 |
CSS | 1 | 12 | 0 | 101 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
3dd-logo.png | 14.63KB | 5.34KB | ▼ 63.49% |