83% c9-admin-dashboard

Code Review | C9 Admin Dashboard

WordPress plugin C9 Admin Dashboard scored83%from 54 tests.

About plugin

  • Plugin page: c9-admin-dashboard
  • Plugin version: 1.3.4
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.2-6.4
  • WordPress version: 6.3.1
  • First release: Aug 10, 2020
  • Latest release: Nov 10, 2023
  • Number of updates: 31
  • Update frequency: every 38.3 days
  • Top authors: ttoomey (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /7,242 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼8.34ms] Passed 4 tests

An overview of server-side resources used by C9 Admin Dashboard
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1539.28 ▲2.47
Dashboard /wp-admin3.35 ▲0.0535.94 ▼15.54
Posts /wp-admin/edit.php3.57 ▲0.2252.87 ▼0.20
Add New Post /wp-admin/post-new.php6.06 ▲0.1783.80 ▼20.10
Media Library /wp-admin/upload.php3.38 ▲0.1539.93 ▲8.21
C9 Admin /wp-admin/options-general.php?page=C9_Admin3.4934.08

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by C9 Admin Dashboard
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,219 ▼54314.35 ▼0.021.70 ▲0.0339.32 ▼0.30
Dashboard /wp-admin1,617 ▼5575.48 ▼0.1885.67 ▼10.0863.85 ▲19.80
Posts /wp-admin/edit.php2,118 ▲152.39 ▲0.3740.68 ▼0.8362.32 ▲24.70
Add New Post /wp-admin/post-new.php1,549 ▲1823.25 ▲0.48632.14 ▲19.3743.67 ▼4.58
Media Library /wp-admin/upload.php1,408 ▲114.12 ▼0.0594.51 ▼7.5650.63 ▲6.98
C9 Admin /wp-admin/options-general.php?page=C9_Admin1,5422.3559.6164.42

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/c9-admin-dashboard/admin/partials/c9-admin-display.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: admin, dashboard widgets, admin dashboard, dashboard, wordpress dashboard

c9-admin-dashboard/c9-admin.php 77% from 13 tests

The main file in "C9 Admin Dashboard" v. 1.3.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("c9-admin-dashboard.php" instead of "c9-admin.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: Keep the plugin description shorter than 140 characters (currently 158 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin17,201 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
JSON20014,968
PHP6165254861
Sass11620837
PO File2157182382
JavaScript6840136
Markdown13015
CSS1002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity60.00
▷ Minimum class complexity60.00
▷ Maximum class complexity60.00
Average method complexity3.11
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods2692.86%
▷ Protected methods00.00%
▷ Private methods27.14%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants3
▷ Global constants3100.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 images were found in this plugin