Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/odvut-author-bio/index.php+20
Methods with the same name as their class will not be constructors in a future version of PHP; wp_my_plugin has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼50.86ms] Passed 4 tests
An overview of server-side resources used by oDvut Author Bio
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.25 ▼40.90 |
Dashboard /wp-admin | 2.10 ▼1.20 | 5.21 ▼43.08 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.50 ▼42.51 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 21.97 ▼76.94 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 6.27 ▼28.59 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_wp_my_plugin |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for oDvut Author Bio
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲80 | 14.28 ▼0.01 | 1.79 ▼0.21 | 43.63 ▼2.14 |
Dashboard /wp-admin | 2,268 ▲90 | 5.66 ▲0.01 | 85.02 ▼33.36 | 90.57 ▲44.15 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 2.03 ▲0.01 | 36.02 ▼4.09 | 33.40 ▼4.13 |
Add New Post /wp-admin/post-new.php | 1,526 ▼10 | 23.24 ▲0.37 | 603.03 ▼127.31 | 64.67 ▲3.55 |
Media Library /wp-admin/upload.php | 1,394 ▼3 | 4.19 ▲0.05 | 95.92 ▼22.96 | 43.59 ▼6.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/odvut-author-bio/index.php+20
Methods with the same name as their class will not be constructors in a future version of PHP; wp_my_plugin has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_wp_my_plugin
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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 take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/odvut-author-bio/index.php:12
- > 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 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== odvut-author-bio ===
) - Screenshots: Screenshot #5 (screenshot-4.png) image required
odvut-author-bio/index.php 92% from 13 tests
The entry point to "oDvut Author Bio" version 0.01 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("odvut-author-bio.php" instead of "index.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
Success! There were no dangerous files found in this plugin154 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 36 | 32 | 120 |
CSS | 1 | 0 | 0 | 34 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.23MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 40.90KB | 13.84KB | ▼ 66.16% |
images/ln.png | 33.35KB | 11.10KB | ▼ 66.71% |
assets/screenshot-2.png | 39.97KB | 13.61KB | ▼ 65.95% |
assets/screenshot-4.png | 6.78KB | 4.36KB | ▼ 35.74% |
images/tw.png | 30.99KB | 10.65KB | ▼ 65.65% |