Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼10.69ms] Passed 4 tests
This is a short check of server-side resources used by WPReadable
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.01 ▼3.69 |
Dashboard /wp-admin | 3.32 ▼0.03 | 50.21 ▼13.25 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.71 ▼1.47 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.08 ▼24.33 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.36 ▲1.82 |
Server storage [IO: ▲0.64MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
wpreadable_ping_rescheduled |
db_upgraded |
can_compress_scripts |
wpr_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WPReadable
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.80 ▲0.57 | 1.84 ▲0.17 | 41.60 ▲1.46 |
Dashboard /wp-admin | 2,210 ▲18 | 4.85 ▼0.12 | 110.12 ▼0.98 | 38.92 ▼8.40 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.04 ▼0.01 | 39.25 ▲2.87 | 33.77 ▼0.18 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.19 ▲5.50 | 668.35 ▲40.29 | 47.45 ▼1.85 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.24 ▲0.03 | 108.38 ▲6.61 | 48.29 ▲4.60 |
WP Readable Options /wp-admin/wp-admin-functions.php | 26 | 0.44 | 0.10 | 20.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 items
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/wpreadable/templates/footer.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_wpr_header() in wp-content/plugins/wpreadable/templates/single.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpreadable/lib/wp-admin-functions.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wpreadable/plugin.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function get_wpr_header() in wp-content/plugins/wpreadable/templates/home.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_wpr_header() in wp-content/plugins/wpreadable/templates/search.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/wpreadable/templates/header.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpreadable/lib/ajax-handler.php:6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/wp-admin-functions.php
- > Network (severe)
wp-admin/wp-admin-functions.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== wpreadable ===
)
wpreadable/plugin.php 92% from 13 tests
The main PHP file in "WPReadable" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpreadable.php" instead of "plugin.php")
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
Good job! No executable or dangerous file extensions detected2,501 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 350 | 264 | 1,376 |
PHP | 9 | 160 | 127 | 686 |
CSS | 1 | 59 | 58 | 439 |
PHP code Passed 2 tests
A short review of 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.41 |
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 | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
14 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/images/logo.png | 3.43KB | 1.64KB | ▼ 52.08% |
templates/images/search-indicator.png | 3.30KB | 2.18KB | ▼ 34.07% |
templates/images/shadow.png | 1.00KB | 0.24KB | ▼ 76.48% |
templates/images/facebook-icon.png | 6.13KB | 3.53KB | ▼ 42.50% |
templates/images/comment-icon.png | 4.82KB | 3.06KB | ▼ 36.49% |