89% wp-dobby

Code Review | Dobby

WordPress plugin Dobby scored89%from 54 tests.

About plugin

  • Plugin page: wp-dobby
  • Plugin version: 1.4.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.7
  • WordPress version: 6.3.1
  • First release: Jul 30, 2017
  • Latest release: Mar 17, 2021
  • Number of updates: 6
  • Update frequency: every 221.0 days
  • Top authors: tfrommen (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active /7,636 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.02MB] [CPU: ▼7.16ms] Passed 4 tests

An overview of server-side resources used by Dobby
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0135.47 ▼2.97
Dashboard /wp-admin3.33 ▲0.0244.23 ▼5.01
Posts /wp-admin/edit.php3.38 ▲0.0244.64 ▼3.62
Add New Post /wp-admin/post-new.php5.91 ▲0.0278.52 ▼17.04
Media Library /wp-admin/upload.php3.25 ▲0.0234.28 ▼1.57

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Dobby
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▼0.271.63 ▼0.0240.33 ▼7.97
Dashboard /wp-admin2,206 ▲174.82 ▼1.13111.41 ▼4.7938.06 ▼8.88
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0434.83 ▼3.7730.35 ▼1.88
Add New Post /wp-admin/post-new.php1,533 ▲1123.23 ▼0.14663.57 ▲1.3352.40 ▼4.39
Media Library /wp-admin/upload.php1,388 ▼34.16 ▼0.0293.30 ▼2.5742.78 ▼0.68

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: admin, notices

wp-dobby/dobby.php 85% from 13 tests

Analyzing the main PHP file in "Dobby" version 1.4.0
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-dobby.php" instead of "dobby.php")
  • Requires at least: The required version number must match the one declared in readme.txt ("3.1.0" instead of "3.1")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin96 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1154268
JavaScript110128

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 code0.22
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
There were not PNG files found in your plugin