84% promaker-dashboard

Code Review | Promaker Dashboard

WordPress plugin Promaker Dashboard scored84%from 54 tests.

About plugin

  • Plugin page: promaker-dashboard
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 12, 2023
  • Latest release: Apr 12, 2023
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: jonathanpromaker (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /77 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.01MB] [CPU: ▼3.47ms] Passed 4 tests

A check of server-side resources used by Promaker Dashboard
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.56 ▲1.31
Dashboard /wp-admin3.31 ▼0.0444.09 ▼16.23
Posts /wp-admin/edit.php3.36 ▲0.0045.48 ▼1.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.95 ▲3.53
Media Library /wp-admin/upload.php3.23 ▲0.0034.89 ▲2.75

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Promaker Dashboard
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲8013.56 ▼0.811.53 ▼0.1241.53 ▼0.19
Dashboard /wp-admin2,226 ▲345.83 ▲0.8699.20 ▼7.7574.19 ▲33.94
Posts /wp-admin/edit.php2,124 ▲352.02 ▲0.0238.59 ▼1.3339.87 ▲7.82
Add New Post /wp-admin/post-new.php1,576 ▲5723.24 ▼0.03653.05 ▼21.3267.01 ▲14.30
Media Library /wp-admin/upload.php1,411 ▲234.18 ▲0.0194.06 ▼6.2476.93 ▲30.21

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 did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/promaker-dashboard/promaker.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: promaker ui, promaker

promaker-dashboard/promaker.php 92% from 13 tests

"Promaker Dashboard" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("promaker-dashboard.php" instead of "promaker.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected340 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
Sass100214
SVG10184
PHP101841
CSS1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
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%
Functions7
▷ Named functions7100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/logo.png0.93KB0.86KB▼ 7.66%