Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/readability-favorites/OAuth.php+101
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.35ms] Passed 4 tests
An overview of server-side resources used by Readability Favorites
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.38 ▼3.64 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.00 ▼10.99 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.51 ▲1.92 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 95.24 ▲3.96 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.91 ▲3.31 |
Readability Plugin /wp-admin/options-general.php?page=k_readability | 3.20 | 28.80 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
readability_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Readability Favorites: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲68 | 14.37 ▲1.23 | 1.98 ▼2.95 | 44.25 ▼0.98 |
Dashboard /wp-admin | 2,210 ▲33 | 5.64 ▼0.04 | 91.51 ▼0.19 | 41.60 ▼3.40 |
Posts /wp-admin/edit.php | 2,131 ▲52 | 2.25 ▲0.19 | 39.53 ▲1.55 | 37.59 ▲2.88 |
Add New Post /wp-admin/post-new.php | 1,563 ▲18 | 18.32 ▼4.76 | 604.70 ▼44.77 | 71.35 ▲23.57 |
Media Library /wp-admin/upload.php | 1,420 ▲23 | 4.24 ▲0.05 | 107.91 ▲4.89 | 44.69 ▲1.08 |
Readability Plugin /wp-admin/options-general.php?page=k_readability | 968 | 2.05 | 31.24 | 38.85 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=k_readability
- > Notice in wp-content/plugins/readability-favorites/readability-options.php+42
Undefined index: k_tab
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
Please fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/readability-favorites/readability_favorites_action.php
- > /wp-content/plugins/readability-favorites/readability_favorites.php
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/readability-favorites/readability-favorites.php:14
- > PHP Warning
include_once(ABSPATHWPINC/class-http.php): failed to open stream: No such file or directory in wp-content/plugins/readability-favorites/readability-settings.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/readability-favorites/readability-settings.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/readability-favorites/readability-options.php:4
- > PHP Warning
include_once(): Failed opening 'ABSPATHWPINC/class-http.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/readability-favorites/readability-settings.php on line 3
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/readability-favorites/readability-settings.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: daily, linkpost, weekly, favorites, links...
readability-favorites/readability-favorites.php Passed 13 tests
"Readability Favorites" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
44 characters long description:
Publish a post of your readability favorites
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,247 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 221 | 287 | 1,162 |
PO File | 1 | 36 | 41 | 85 |
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.35 |
Average class complexity | 8.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 2 | 18.18% |
▷ Concrete classes | 9 | 81.82% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 10 | 16.95% |
▷ Public methods | 48 | 81.36% |
▷ Protected methods | 2 | 3.39% |
▷ Private methods | 9 | 15.25% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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
PNG images were not found in this plugin