Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.21MB] [CPU: ▼14.23ms] Passed 4 tests
A check of server-side resources used by Coffee Admin Theme
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.39 ▲0.58 |
Dashboard /wp-admin | 3.08 ▼0.22 | 25.81 ▼25.59 |
Posts /wp-admin/edit.php | 3.22 ▼0.13 | 31.01 ▼13.11 |
Add New Post /wp-admin/post-new.php | 5.46 ▼0.42 | 76.08 ▼11.43 |
Media Library /wp-admin/upload.php | 3.17 ▼0.06 | 27.80 ▼6.77 |
Coffee Theme Options /wp-admin/options-general.php?page=dashtheme_themeoptions | 3.07 | 26.15 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Coffee Admin Theme
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲77 | 14.84 ▲0.07 | 1.64 ▼0.44 | 44.14 ▼1.79 |
Dashboard /wp-admin | 2,221 ▲36 | 4.87 ▼1.00 | 107.29 ▲3.45 | 44.26 ▲7.42 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 1.99 ▼0.05 | 38.09 ▲0.34 | 33.25 ▲1.30 |
Add New Post /wp-admin/post-new.php | 1,525 ▼12 | 17.76 ▼5.32 | 594.56 ▼1.44 | 57.54 ▲3.82 |
Media Library /wp-admin/upload.php | 1,403 ▲12 | 4.17 ▼0.04 | 93.41 ▼6.40 | 42.54 ▼2.09 |
Coffee Theme Options /wp-admin/options-general.php?page=dashtheme_themeoptions | 926 | 2.03 | 24.95 | 25.43 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 27 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=dashtheme_themeoptions
- > Notice in wp-content/plugins/coffee-admin-theme/index.php+100
Trying to access array offset on value of type bool
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=dashtheme_themeoptions
- > Notice in wp-content/plugins/coffee-admin-theme/index.php+40
Undefined offset: 1
SRP 50% 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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coffee-admin-theme/index.php:19
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=dashtheme_themeoptions
- > Network (severe)
wp-content/plugins/coffee-admin-theme/.css?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=dashtheme_themeoptions
- > Network (severe)
http://fonts.googleapis.com/css?family&ver=1.0.0 - Failed to load resource: the server responded with a status of 400 (Bad Request)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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 have no corresponding images in /assets: #1 (Screenshot of the original "Coffee" theme.), #2 (Screenshot of the "Piano" theme, showing custom fonts and the custom icons, which will be released soon.)
coffee-admin-theme/index.php 92% from 13 tests
Analyzing the main PHP file in "Coffee Admin Theme" version 1.4.1
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("coffee-admin-theme.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,207 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 294 | 26 | 1,115 |
PHP | 1 | 22 | 13 | 92 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pinstripe.png | 0.52KB | 0.59KB | 0.00% |
images/diagonal-noise.png | 8.29KB | 5.32KB | ▼ 35.84% |