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.22MB] [CPU: ▼3.93ms] Passed 4 tests
A check of server-side resources used by DeadTrees
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 42.01 ▲1.78 |
Dashboard /wp-admin | 3.54 ▲0.23 | 50.31 ▲2.17 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 50.78 ▲1.92 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 88.01 ▼18.64 |
Media Library /wp-admin/upload.php | 3.46 ▲0.22 | 36.22 ▼0.79 |
Dead Trees /wp-admin/options-general.php?page=dt-settings | 3.42 | 32.56 |
Add New /wp-admin/post-new.php?post_type=dt_book | 3.67 | 52.29 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=dt_book | 3.45 | 35.13 |
All Books /wp-admin/edit.php?post_type=dt_book | 3.50 | 35.16 |
Writers /wp-admin/edit-tags.php?taxonomy=dt_writer&post_type=dt_book | 3.45 | 33.60 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 10 new options
New WordPress options |
---|
dt_default_cover_size |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
dt_send_bookbox_css |
dt_auto_add_bookbox |
widget_recent-comments |
dt_default_to_dev_affiliate |
Browser metrics Passed 4 tests
DeadTrees: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲98 | 14.74 ▲0.44 | 1.74 ▼0.03 | 43.55 ▲3.17 |
Dashboard /wp-admin | 2,248 ▲60 | 5.90 ▲1.04 | 94.83 ▼6.09 | 40.75 ▼2.65 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.05 ▲0.04 | 41.94 ▲5.42 | 36.58 ▲1.36 |
Add New Post /wp-admin/post-new.php | 1,567 ▲53 | 23.24 ▲5.51 | 648.74 ▼80.67 | 58.07 ▲4.59 |
Media Library /wp-admin/upload.php | 1,427 ▲39 | 4.16 ▲0.02 | 93.51 ▼20.26 | 40.67 ▼6.86 |
Dead Trees /wp-admin/options-general.php?page=dt-settings | 994 | 2.04 | 23.91 | 30.93 |
Add New /wp-admin/post-new.php?post_type=dt_book | 2,836 | 8.14 | 180.91 | 73.33 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=dt_book | 1,343 | 2.13 | 24.98 | 28.31 |
All Books /wp-admin/edit.php?post_type=dt_book | 1,151 | 1.92 | 29.80 | 30.85 |
Writers /wp-admin/edit-tags.php?taxonomy=dt_writer&post_type=dt_book | 1,273 | 2.15 | 25.10 | 27.97 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 10 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- dt_default_cover_size
- db_upgraded
- dt_auto_add_bookbox
- widget_recent-comments
- dt_send_bookbox_css
- can_compress_scripts
- theysaidso_admin_options
- dt_default_to_dev_affiliate
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dead-trees/deadtrees.php:1052
- > PHP Fatal error
Uncaught Error: Call to undefined function dt_get_bookbox_image() in wp-content/plugins/dead-trees/template/deadtree-bookbox.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/dead-trees/admin/bookbox_metabox_contents.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/dead-trees/admin/options.php:2
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: library, books, book, reading
dead-trees/deadtrees.php 92% from 13 tests
The main file in "DeadTrees" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dead-trees.php" instead of "deadtrees.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin913 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 372 | 60 | 823 |
Markdown | 1 | 28 | 0 | 47 |
CSS | 2 | 8 | 2 | 43 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 101.00 |
▷ Minimum class complexity | 101.00 |
▷ Maximum class complexity | 101.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 57 | |
▷ Static methods | 3 | 5.26% |
▷ Public methods | 44 | 77.19% |
▷ Protected methods | 13 | 22.81% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.57MB with 0.39MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 52.22KB | 13.85KB | ▼ 73.48% |
screenshot-1.png | 240.83KB | 78.19KB | ▼ 67.53% |
screenshot-2.png | 254.56KB | 83.66KB | ▼ 67.14% |
screenshot-4.png | 34.85KB | 11.54KB | ▼ 66.89% |