Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/readability-buttons/readability-buttons.php+230
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼54.52ms] Passed 4 tests
Server-side resources used by Readability Buttons (readability.com)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 3.67 ▼37.00 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.12 ▼46.32 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.83 ▼39.19 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 4.79 ▼95.58 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.69 ▼29.55 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_widget-readability-buttons-id |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Readability Buttons (readability.com)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.25 ▼1.12 | 1.79 ▼0.01 | 38.93 ▼3.44 |
Dashboard /wp-admin | 2,224 ▲18 | 4.86 ▼0.95 | 111.23 ▲5.11 | 43.52 ▼2.40 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.06 ▲0.06 | 41.67 ▲2.24 | 39.01 ▲3.80 |
Add New Post /wp-admin/post-new.php | 1,545 ▼0 | 23.13 ▲0.18 | 651.59 ▼16.82 | 59.60 ▲10.25 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.23 ▲0.01 | 108.71 ▲8.76 | 46.01 ▲2.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/readability-buttons/readability-buttons.php+230
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_widget-readability-buttons-id
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/readability-buttons/views/widget.php
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: show_vertical in wp-content/plugins/readability-buttons/views/widget.php on line 11
- > PHP Notice
Undefined variable: show_email in wp-content/plugins/readability-buttons/views/widget.php on line 10
- > PHP Notice
Undefined variable: show_read_now in wp-content/plugins/readability-buttons/views/widget.php on line 6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/readability-buttons/views/admin.php:3
- > PHP Notice
Undefined variable: text_color in wp-content/plugins/readability-buttons/views/widget.php on line 13
- > PHP Notice
Undefined variable: title in wp-content/plugins/readability-buttons/views/widget.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/readability-buttons/readability-buttons.php:29
- > PHP Notice
Undefined variable: show_send_to_kindle in wp-content/plugins/readability-buttons/views/widget.php on line 8
- > PHP Notice
Undefined variable: show_print in wp-content/plugins/readability-buttons/views/widget.php on line 9
- > PHP Notice
Undefined variable: show_read_later in wp-content/plugins/readability-buttons/views/widget.php on line 7
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 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
8 plugin tags: wpmu, widget, share, javascript, multisite...
readability-buttons/readability-buttons.php Passed 13 tests
This is the main PHP file of "Readability Buttons (readability.com)" version 2.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
42 characters long description:
Adds readability.com widget for your site.
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 detected164 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 54 | 107 | 139 |
PO File | 1 | 0 | 0 | 17 |
JavaScript | 2 | 0 | 2 | 8 |
CSS | 2 | 0 | 2 | 0 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
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 | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 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 | 0 | |
▷ Global constants | 0 | 0.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
There were not PNG files found in your plugin