84% version-dashboard

Code Review | Version Dashboard Client

WordPress plugin Version Dashboard Client scored84%from 54 tests.

About plugin

  • Plugin page: version-dashboard
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.4
  • WordPress version: 6.3.1
  • First release: Mar 1, 2016
  • Latest release: Mar 1, 2016
  • Number of updates: 11
  • Update frequency: every 0.4 days
  • Top authors: jaamo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,294 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.68MB] [CPU: ▼17.31ms] Passed 4 tests

An overview of server-side resources used by Version Dashboard Client
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.40 ▲0.20
Dashboard /wp-admin3.32 ▲0.0245.17 ▼4.14
Posts /wp-admin/edit.php3.37 ▲0.0246.63 ▼0.42
Add New Post /wp-admin/post-new.php3.13 ▼2.7535.25 ▼64.87
Media Library /wp-admin/upload.php3.24 ▲0.0136.08 ▲0.97

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Version Dashboard Client
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.31 ▼1.311.69 ▼0.3341.82 ▼1.65
Dashboard /wp-admin2,206 ▲215.79 ▲0.9097.66 ▼3.9139.87 ▼3.08
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0539.84 ▼2.0735.46 ▼2.08
Add New Post /wp-admin/post-new.php1,533 ▼423.18 ▲4.84677.80 ▲10.3264.69 ▲8.57
Media Library /wp-admin/upload.php1,391 ▲34.21 ▼0.0398.63 ▼14.3244.04 ▼5.51

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/version-dashboard/version-dashboard-client.php on line 12
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/version-dashboard/version-dashboard-client.php on line 12
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/version-dashboard/version-dashboard-client.php on line 12

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 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === version-dashboard === )
The official readme.txt is a good inspiration

version-dashboard/version-dashboard-client.php 92% from 13 tests

Analyzing the main PHP file in "Version Dashboard Client" version 1.0.0
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("version-dashboard.php" instead of "version-dashboard-client.php")

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 detected65 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1185453
Markdown17012

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.86
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
Namespaces0
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 functions266.67%
▷ Anonymous functions133.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected