Benchmarks
Plugin footprint 82% 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: ▲2.98MB] [CPU: ▲29.48ms] 75% from 4 tests
This is a short check of server-side resources used by Worth The Read
Please have a look at the following items
- RAM: Total memory usage must be kept under 10MB (currently 15.34MB on /wp-admin/admin.php?page=wtr_options&tab=1)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 14.54 ▲11.08 | 95.26 ▲54.65 |
Dashboard /wp-admin | 6.30 ▲3.00 | 74.03 ▲24.95 |
Posts /wp-admin/edit.php | 6.35 ▲3.00 | 80.05 ▲33.71 |
Add New Post /wp-admin/post-new.php | 8.85 ▲2.96 | 122.61 ▲27.20 |
Media Library /wp-admin/upload.php | 6.18 ▲2.96 | 67.25 ▲32.06 |
Time Commitment /wp-admin/admin.php?page=wtr_options&tab=4 | 15.60 | 161.81 |
Redux /wp-admin/options-general.php?page=redux-framework | 6.19 | 57.16 |
Import / Export /wp-admin/admin.php?page=wtr_options&tab=7 | 15.34 | 80.14 |
Reading Progress /wp-admin/admin.php?page=wtr_options&tab=1 | 15.34 | 85.93 |
Server storage [IO: ▲7.98MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 830 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
wtr_settings |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
wtr_debug_messages |
wtr_settings-transients |
db_upgraded |
Browser metrics Passed 4 tests
Worth The Read: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲96 | 13.23 ▼1.00 | 4.17 ▲2.52 | 38.31 ▼2.24 |
Dashboard /wp-admin | 2,241 ▲56 | 5.85 ▼0.01 | 107.14 ▲7.67 | 41.98 ▲1.96 |
Posts /wp-admin/edit.php | 2,132 ▲61 | 2.05 ▼0.02 | 38.88 ▲2.81 | 32.75 ▼1.85 |
Add New Post /wp-admin/post-new.php | 6,276 ▲4,746 | 25.91 ▲7.77 | 890.37 ▲269.00 | 52.28 ▼9.13 |
Media Library /wp-admin/upload.php | 1,431 ▲46 | 4.26 ▲0.09 | 98.23 ▲2.19 | 42.30 ▲0.51 |
Time Commitment /wp-admin/admin.php?page=wtr_options&tab=4 | 2,414 | 4.98 | 139.76 | 118.50 |
Redux /wp-admin/options-general.php?page=redux-framework | 1,031 | 3.34 | 70.05 | 79.42 |
Import / Export /wp-admin/admin.php?page=wtr_options&tab=7 | 2,196 | 5.05 | 76.49 | 210.64 |
Reading Progress /wp-admin/admin.php?page=wtr_options&tab=1 | 2,406 | 5.16 | 108.89 | 85.96 |
Uninstaller [IO: ▲0.00MB] [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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 9 options
- wtr_settings
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- wtr_settings-transients
- wtr_debug_messages
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wtr_options&tab=1
- > User deprecated in wp-includes/functions.php+5453
Function get_wordpress_data is deprecated since version 4.0.0! Use wordpress_data->get( $type, $args, $opt_name, $value ) instead.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 45× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/worth-the-read/options/inc/fields/image_select/field_image_select.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/worth-the-read/options/core/newsflash.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/worth-the-read/options/inc/fields/dimensions/field_dimensions.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/worth-the-read/options/inc/fields/date/field_date.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/worth-the-read/options/inc/fields/editor/field_editor.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/worth-the-read/options/inc/fields/textarea/field_textarea.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/worth-the-read/options/inc/fields/media/field_media.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/worth-the-read/options/core/enqueue.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/worth-the-read/options/templates/panel/header-stickybar.tpl.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/worth-the-read/options/inc/fields/select_image/field_select_image.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 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
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== worth-the-read ===
) - Screenshots: These screenshots need descriptions #1, #2, #3, #4 in worth-the-read/assets to your readme.txt
worth-the-read/worth-the-read.php Passed 13 tests
The principal PHP file in "Worth The Read" v. 1.14.1 is loaded by WordPress automatically on each request
125 characters long description:
Adds read length progress bar to single posts and pages, as well as an optional reading time commitment label to post titles.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin78,693 lines of code in 556 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 201 | 6,997 | 12,454 | 28,492 |
JavaScript | 141 | 6,164 | 3,390 | 25,909 |
Sass | 97 | 1,872 | 79 | 12,601 |
CSS | 110 | 6,689 | 319 | 10,742 |
SVG | 6 | 0 | 0 | 946 |
Markdown | 1 | 1 | 0 | 3 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 110)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 37.51 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 322.00 |
Average method complexity | 6.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 110.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 144 | |
▷ Abstract classes | 4 | 2.78% |
▷ Concrete classes | 140 | 97.22% |
▷ Final classes | 0 | 0.00% |
Methods | 1,055 | |
▷ Static methods | 279 | 26.45% |
▷ Public methods | 823 | 78.01% |
▷ Protected methods | 140 | 13.27% |
▷ Private methods | 92 | 8.72% |
Functions | 43 | |
▷ Named functions | 38 | 88.37% |
▷ Anonymous functions | 5 | 11.63% |
Constants | 103 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 103 | 100.00% |
▷ Public constants | 103 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
57 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
options/assets/img/right.png | 0.15KB | 0.11KB | ▼ 28.57% |
options/assets/img/jquery-ui-bootstrap/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | 0.00% |
options/assets/img/raw/2cl.png | 2.91KB | 0.24KB | ▼ 91.79% |
options/assets/img/raw/3cr.png | 2.98KB | 0.34KB | ▼ 88.66% |
options/assets/img/3cr.png | 0.33KB | 0.34KB | 0.00% |