79% wp-dev-dashboard

Code Review | WP Dev Dashboard

WordPress plugin WP Dev Dashboard scored79%from 54 tests.

About plugin

  • Plugin page: wp-dev-dashboard
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4
  • WordPress version: 6.3.1
  • First release: Aug 16, 2015
  • Latest release: Oct 9, 2016
  • Number of updates: 13
  • Update frequency: every 32.3 days
  • Top authors: McGuive7 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active /3,678 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Analyzing server-side resources used by WP Dev Dashboard
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.95 ▲0.4844.70 ▲0.82
Dashboard /wp-admin3.79 ▲0.4953.16 ▲5.30
Posts /wp-admin/edit.php3.84 ▲0.4948.38 ▲2.21
Add New Post /wp-admin/post-new.php6.33 ▲0.4588.97 ▼3.35
Media Library /wp-admin/upload.php3.65 ▲0.4337.28 ▲0.19

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

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

Browser metrics Passed 4 tests

WP Dev Dashboard: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲7813.75 ▼0.711.77 ▼0.2545.54 ▲1.21
Dashboard /wp-admin2,227 ▲395.91 ▲1.02101.39 ▼0.4839.15 ▲2.34
Posts /wp-admin/edit.php2,116 ▲272.26 ▲0.0937.35 ▼1.5332.43 ▼1.26
Add New Post /wp-admin/post-new.php1,539 ▲2523.04 ▲5.44666.59 ▼7.0252.77 ▼1.14
Media Library /wp-admin/upload.php1,414 ▲234.28 ▲0.1097.33 ▼1.7045.48 ▲1.03

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 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
Please fix the following
  • 9× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-dev-dashboard/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/app/index.php
    • > /wp-content/plugins/wp-dev-dashboard/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/testcase/memory_test.php
    • > /wp-content/plugins/wp-dev-dashboard/public/partials/wp-dev-dashboard-public-display.php
    • > /wp-content/plugins/wp-dev-dashboard/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/testcase/slick_test.php
    • > /wp-content/plugins/wp-dev-dashboard/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/testcase/mass_test.php
    • > /wp-content/plugins/wp-dev-dashboard/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/testcase/reader/memory_test.php
    • > /wp-content/plugins/wp-dev-dashboard/admin/partials/wp-dev-dashboard-admin-display.php
    • > /wp-content/plugins/wp-dev-dashboard/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/testcase/performance_test.php
    • > /wp-content/plugins/wp-dev-dashboard/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/example/example_advanced_selector.php
  • 4095× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Warning
      preg_match(): Compilation failed: invalid range in character class at offset 4 in wp-content/plugins/wp-dev-dashboard/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/simple_html_dom.php on line 1364
    • > PHP Warning
      preg_match(): Compilation failed: invalid range in character class at offset 4 in wp-content/plugins/wp-dev-dashboard/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/simple_html_dom.php on line 1364
    • > PHP Warning
      preg_match(): Compilation failed: invalid range in character class at offset 4 in wp-content/plugins/wp-dev-dashboard/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/simple_html_dom.php on line 1364
    • > PHP Warning
      preg_match(): Compilation failed: invalid range in character class at offset 4 in wp-content/plugins/wp-dev-dashboard/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/simple_html_dom.php on line 1364
    • > PHP Warning
      preg_match(): Compilation failed: invalid range in character class at offset 4 in wp-content/plugins/wp-dev-dashboard/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/simple_html_dom.php on line 1364
    • > PHP Warning
      preg_match(): Compilation failed: invalid range in character class at offset 4 in wp-content/plugins/wp-dev-dashboard/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/simple_html_dom.php on line 1364
    • > PHP Warning
      preg_match(): Compilation failed: invalid range in character class at offset 4 in wp-content/plugins/wp-dev-dashboard/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/simple_html_dom.php on line 1364
    • > PHP Warning
      preg_match(): Compilation failed: invalid range in character class at offset 4 in wp-content/plugins/wp-dev-dashboard/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/simple_html_dom.php on line 1364
    • > PHP Warning
      preg_match(): Compilation failed: invalid range in character class at offset 4 in wp-content/plugins/wp-dev-dashboard/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/simple_html_dom.php on line 1364
    • > PHP Warning
      preg_match(): Compilation failed: invalid range in character class at offset 4 in wp-content/plugins/wp-dev-dashboard/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/simple_html_dom.php on line 1364

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 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
8 plugin tags: dashboard, requests, theme, unresolved, tickets...

wp-dev-dashboard/wp-dev-dashboard.php Passed 13 tests

The principal PHP file in "WP Dev Dashboard" v. 1.4 is loaded by WordPress automatically on each request
66 characters long description:
Easily see all of your unresolved plugin & theme support requests.

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
No dangerous file extensions were detected12,331 lines of code in 64 files:
LanguageFilesBlank linesComment linesLines of code
PHP431,1021,7015,413
HTML5598503,990
JavaScript77406632,435
CSS66422361
Markdown2480108
JSON10024

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity42.73
▷ Minimum class complexity1.00
▷ Maximum class complexity197.00
Average method complexity4.06
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods148
▷ Static methods85.41%
▷ Public methods12584.46%
▷ Protected methods1711.49%
▷ Private methods64.05%
Functions28
▷ Named functions2796.43%
▷ Anonymous functions13.57%
Constants21
▷ Global constants21100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/manual/img/tab.png0.72KB0.70KB▼ 2.45%