Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.14MB] [CPU: ▼11.74ms] Passed 4 tests
Analyzing server-side resources used by Readinglist
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 33.99 ▼2.02 |
Dashboard /wp-admin | 3.57 ▲0.27 | 53.97 ▲10.91 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 48.17 ▲5.14 |
Add New Post /wp-admin/post-new.php | 4.78 ▼1.11 | 45.31 ▼51.98 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 33.69 ▲1.89 |
Readinglist /wp-admin/options-general.php?page=readinglist_settings | 3.41 | 35.46 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
readinglist_settings |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Readinglist: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,095 ▲349 | 15.39 ▲0.80 | 6.53 ▲4.89 | 51.08 ▲10.90 |
Dashboard /wp-admin | 2,367 ▲175 | 6.61 ▲1.69 | 121.50 ▲11.16 | 35.47 ▼8.27 |
Posts /wp-admin/edit.php | 2,267 ▲178 | 3.51 ▲1.47 | 49.25 ▲15.40 | 31.82 ▼2.67 |
Add New Post /wp-admin/post-new.php | 1,687 ▲173 | 22.72 ▲5.02 | 609.99 ▼80.48 | 29.39 ▼45.57 |
Media Library /wp-admin/upload.php | 1,412 ▲27 | 4.35 ▲0.12 | 81.86 ▼16.56 | 43.29 ▼3.62 |
Readinglist /wp-admin/options-general.php?page=readinglist_settings | 1,101 | 3.44 | 49.44 | 28.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- readinglist_settings
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/readinglist/gh-reading-list.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/readinglist/vendor/tareq1988/wordpress-settings-api-class/example/procedural-example.php:270
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/readinglist/inc/gh-readinglist-settings.php:84
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/readinglist/vendor/tareq1988/wordpress-settings-api-class/src/class.settings-api.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please a description for screenshot #3 in readinglist/assets to your readme.txt
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== readinglist ===
)
readinglist/gh-reading-list.php 92% from 13 tests
Analyzing the main PHP file in "Readinglist" version 2.1
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("readinglist.php" instead of "gh-reading-list.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin2,160 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 261 | 437 | 1,503 |
PO File | 2 | 86 | 254 | 245 |
JavaScript | 1 | 12 | 4 | 153 |
CSS | 1 | 19 | 2 | 116 |
JSON | 3 | 0 | 0 | 84 |
Markdown | 1 | 21 | 0 | 47 |
SVG | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 21.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 4 | 6.78% |
▷ Public methods | 58 | 98.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.69% |
Functions | 22 | |
▷ Named functions | 20 | 90.91% |
▷ Anonymous functions | 2 | 9.09% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.39MB with 0.17MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/cancel.png | 12.62KB | 10.30KB | ▼ 18.37% |
vendor/tareq1988/wordpress-settings-api-class/screenshot-1.png | 389.59KB | 115.93KB | ▼ 70.24% |