Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼6.08ms] Passed 4 tests
A check of server-side resources used by Docubot
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 49.01 ▲0.39 |
Dashboard /wp-admin | 3.50 ▲0.20 | 53.36 ▼2.70 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 48.63 ▼6.46 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 88.00 ▼15.56 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 37.07 ▲0.59 |
Server storage [IO: ▲6.69MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Docubot: 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,943 ▲182 | 13.53 ▼0.82 | 10.23 ▲8.40 | 38.71 ▼5.05 |
Dashboard /wp-admin | 2,240 ▲66 | 5.83 ▲0.16 | 88.50 ▼5.75 | 39.41 ▼7.12 |
Posts /wp-admin/edit.php | 2,141 ▲38 | 1.99 ▲0.02 | 35.59 ▼11.43 | 35.59 ▼4.55 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 18.21 ▼5.29 | 666.16 ▲45.57 | 76.87 ▲27.16 |
Media Library /wp-admin/upload.php | 1,442 ▲39 | 4.24 ▲0.04 | 99.74 ▼8.62 | 45.64 ▼0.26 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== docubot ===
)
docubot/docubot.php Passed 13 tests
The main PHP file in "Docubot" ver. 2.0.2 adds more information about the plugin and also serves as the entry point for this plugin
127 characters long description:
A Plugin that adds Docubot to a wordpress site. It is added via the short code [Docubot]. Should be the only thing on the page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected2,460 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 285 | 31 | 1,076 |
PHP | 5 | 289 | 249 | 872 |
JavaScript | 5 | 51 | 64 | 261 |
SVG | 5 | 0 | 2 | 215 |
Markdown | 1 | 9 | 0 | 36 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 11.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 6.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 15 | 62.50% |
▷ Public methods | 18 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 25.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
2 PNG files occupy 3.58MB with 2.57MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/spritesheet.png | 3,584.26KB | 1,005.18KB | ▼ 71.96% |
assets/img/1law-phone-02.png | 86.28KB | 24.75KB | ▼ 71.31% |