Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼4.42ms] Passed 4 tests
A check of server-side resources used by Good Reads Books
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 45.64 ▼0.11 |
Dashboard /wp-admin | 3.46 ▲0.16 | 72.62 ▲26.28 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 49.62 ▼2.62 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 96.63 ▼12.09 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 37.10 ▼2.86 |
Good Reads Books /wp-admin/options-general.php?page=goodrds | 3.26 | 37.15 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Good Reads Books
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲141 | 13.57 ▼1.18 | 6.00 ▲3.96 | 38.82 ▼0.41 |
Dashboard /wp-admin | 2,210 ▲19 | 4.88 ▲0.02 | 115.80 ▲13.02 | 43.80 ▲1.78 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.03 | 39.01 ▼1.27 | 35.72 ▼3.28 |
Add New Post /wp-admin/post-new.php | 1,536 ▲16 | 23.23 ▼0.11 | 658.95 ▲10.23 | 55.70 ▲4.00 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▲0.01 | 94.70 ▼7.90 | 41.87 ▼1.32 |
Good Reads Books /wp-admin/options-general.php?page=goodrds | 1,039 | 2.21 | 27.98 | 36.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/display-good-reads-books/good-reads-books.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
display-good-reads-books/good-reads-books.php 85% from 13 tests
"Good Reads Books" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("display-good-reads-books.php" instead of "good-reads-books.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected400 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 76 | 137 | 357 |
JavaScript | 2 | 2 | 0 | 22 |
CSS | 2 | 0 | 0 | 21 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 50.00 |
▷ Minimum class complexity | 50.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 4.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin