Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼1.74MB] [CPU: ▼53.64ms] Passed 4 tests
This is a short check of server-side resources used by Pocket Readability Instapaper Buttons
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 43.58 ▼3.95 |
Dashboard /wp-admin | 2.20 ▼1.11 | 9.23 ▼43.09 |
Posts /wp-admin/edit.php | 2.20 ▼1.15 | 7.70 ▼49.10 |
Add New Post /wp-admin/post-new.php | 2.20 ▼3.69 | 7.40 ▼99.04 |
Media Library /wp-admin/upload.php | 2.20 ▼1.03 | 8.47 ▼23.34 |
Pocket Readability Instapaper Buttons /wp-admin/options-general.php?page=pocket-readability-instapaper-buttons-settings | 2.20 | 8.78 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Pocket Readability Instapaper Buttons
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.38 ▲0.09 | 1.88 ▲0.12 | 45.81 ▼1.35 |
Dashboard /wp-admin | 2,204 ▲30 | 5.64 ▼0.04 | 88.95 ▲0.42 | 40.29 ▼4.73 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.04 ▲0.00 | 35.22 ▼8.72 | 38.25 ▲0.87 |
Add New Post /wp-admin/post-new.php | 1,556 ▲8 | 18.49 ▼4.55 | 634.92 ▼3.45 | 56.43 ▼3.64 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.25 ▲0.04 | 98.63 ▼1.91 | 44.23 ▼0.34 |
Pocket Readability Instapaper Buttons /wp-admin/options-general.php?page=pocket-readability-instapaper-buttons-settings | 982 | 2.08 | 26.33 | 33.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the myPluginOptionsStylesheet handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=pocket-readability-instapaper-buttons-settings
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the myPluginOptionsStylesheet handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
SRP 50% 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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/pocket-readability-instapaper-buttons/pocket-readability-instapaper-buttons.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
Attributes that require attention:
- Screenshots: Screenshot #2 (Settings panel in Wordpress Administration.) image missing
- Donate link: Invalid url: ""
pocket-readability-instapaper-buttons/pocket-readability-instapaper-buttons.php 92% from 13 tests
The principal PHP file in "Pocket Readability Instapaper Buttons" v. 1.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 226 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected238 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 29 | 15 | 225 |
CSS | 1 | 0 | 4 | 13 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.26MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.PNG | 37.38KB | 16.86KB | ▼ 54.90% |
img/logo_kindle.png | 72.21KB | 30.80KB | ▼ 57.34% |
img/logo_readability.png | 36.27KB | 15.29KB | ▼ 57.83% |
img/logo_instapaper.png | 30.62KB | 17.44KB | ▼ 43.03% |
assets/screenshot-1.PNG | 35.16KB | 16.50KB | ▼ 53.06% |