83% vp-dashbord-theme

Code Review | VP Dashbord Theme

WordPress plugin VP Dashbord Theme scored 83% from 54 tests.

About plugin

  • Plugin page: vp-dashbord-theme
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9
  • WordPress version: 6.3.1
  • First release: Jun 7, 2014
  • Latest release: Jun 7, 2014
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: Maruf Arafat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 687 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.03MB] [CPU: ▼5.79ms] Passed 4 tests

A check of server-side resources used by VP Dashbord Theme
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.42 ▼0.0436.81 ▼4.59
Dashboard /wp-admin3.31 ▲0.0143.60 ▼5.82
Posts /wp-admin/edit.php3.36 ▲0.0146.63 ▲0.78
Add New Post /wp-admin/post-new.php5.78 ▼0.1178.40 ▼13.52
Media Library /wp-admin/upload.php3.24 ▲0.0135.78 ▲3.12

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for VP Dashbord Theme
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,519 ▼21613.72 ▼0.831.26 ▼0.9131.60 ▼20.20
Dashboard /wp-admin2,060 ▼1282.73 ▼2.1446.45 ▼69.8037.84 ▼10.07
Posts /wp-admin/edit.php2,025 ▼642.04 ▲0.0234.86 ▼2.4631.00 ▼2.76
Add New Post /wp-admin/post-new.php1,193 ▼32813.63 ▼9.43262.04 ▼402.5017.40 ▼31.76
Media Library /wp-admin/upload.php1,312 ▼794.18 ▲0.0092.71 ▼8.4343.15 ▼1.94

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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/vp-dashbord-theme/functions.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: These screenshots lack descriptions #1, #65965 in vp-dashbord-theme/assets to your readme.txt
  • Contributors: Contributors not specified
The official readme.txt might help

vp-dashbord-theme/functions.php 92% from 13 tests

The main PHP script in "VP Dashbord Theme" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("vp-dashbord-theme.php" instead of "functions.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected499 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
SVG100414
PHP1241353
CSS211332

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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