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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 39.28 ▲2.47 |
Dashboard /wp-admin | 3.35 ▲0.05 | 35.94 ▼15.54 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 52.87 ▼0.20 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 83.80 ▼20.10 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 39.93 ▲8.21 |
C9 Admin /wp-admin/options-general.php?page=C9_Admin | 3.49 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,219 ▼543 | 14.35 ▼0.02 | 1.70 ▲0.03 | 39.32 ▼0.30 |
Dashboard /wp-admin | 1,617 ▼557 | 5.48 ▼0.18 | 85.67 ▼10.08 | 63.85 ▲19.80 |
Posts /wp-admin/edit.php | 2,118 ▲15 | 2.39 ▲0.37 | 40.68 ▼0.83 | 62.32 ▲24.70 |
Add New Post /wp-admin/post-new.php | 1,549 ▲18 | 23.25 ▲0.48 | 632.14 ▲19.37 | 43.67 ▼4.58 |
Media Library /wp-admin/upload.php | 1,408 ▲11 | 4.12 ▼0.05 | 94.51 ▼7.56 | 50.63 ▲6.98 |
C9 Admin /wp-admin/options-general.php?page=C9_Admin | 1,542 | 2.35 | 59.61 | 64.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 14,968 |
PHP | 6 | 165 | 254 | 861 |
Sass | 1 | 162 | 0 | 837 |
PO File | 2 | 157 | 182 | 382 |
JavaScript | 6 | 8 | 40 | 136 |
Markdown | 1 | 3 | 0 | 15 |
CSS | 1 | 0 | 0 | 2 |
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 code | 0.19 |
Average class complexity | 60.00 |
▷ Minimum class complexity | 60.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 7.14% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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