89% docubot

Code Review | Docubot

WordPress plugin Docubot scored89%from 54 tests.

About plugin

  • Plugin page: docubot
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.3.2
  • WordPress version: 6.3.1
  • First release: Sep 7, 2016
  • Latest release: Apr 15, 2020
  • Number of updates: 17
  • Update frequency: every 77.7 days
  • Top authors: jvyrd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,622 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2049.01 ▲0.39
Dashboard /wp-admin3.50 ▲0.2053.36 ▼2.70
Posts /wp-admin/edit.php3.62 ▲0.2648.63 ▼6.46
Add New Post /wp-admin/post-new.php6.09 ▲0.2088.00 ▼15.56
Media Library /wp-admin/upload.php3.43 ▲0.2037.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,943 ▲18213.53 ▼0.8210.23 ▲8.4038.71 ▼5.05
Dashboard /wp-admin2,240 ▲665.83 ▲0.1688.50 ▼5.7539.41 ▼7.12
Posts /wp-admin/edit.php2,141 ▲381.99 ▲0.0235.59 ▼11.4335.59 ▼4.55
Add New Post /wp-admin/post-new.php1,548 ▲2218.21 ▼5.29666.16 ▲45.5776.87 ▲27.16
Media Library /wp-admin/upload.php1,442 ▲394.24 ▲0.0499.74 ▼8.6245.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 === )
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
CSS2285311,076
PHP5289249872
JavaScript55164261
SVG502215
Markdown19036

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 code0.30
Average class complexity11.91
▷ Minimum class complexity1.00
▷ Maximum class complexity80.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods24
▷ Static methods1562.50%
▷ Public methods1875.00%
▷ Protected methods00.00%
▷ Private methods625.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/img/spritesheet.png3,584.26KB1,005.18KB▼ 71.96%
assets/img/1law-phone-02.png86.28KB24.75KB▼ 71.31%