Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/cms-admin-area/adminarea.php+21
Function create_function() is deprecated
Server metrics [RAM: ▼1.62MB] [CPU: ▼197.17ms] Passed 4 tests
Server-side resources used by CMS admin area
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.01 ▼0.71 | 6.38 ▼14.71 |
Dashboard /wp-admin | 2.03 ▼1.02 | 5.86 ▼45.08 |
Posts /wp-admin/edit.php | 2.03 ▼1.08 | 6.00 ▼45.00 |
Add New Post /wp-admin/post-new.php | 2.03 ▼3.40 | 6.22 ▼661.41 |
Media Library /wp-admin/upload.php | 2.03 ▼0.98 | 5.90 ▼37.18 |
Admin Area Options /wp-admin/options-general.php?page=admin-area-options | 2.03 | 7.61 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 3 new options
New WordPress options |
---|
admin_area_display_settings |
admin_area_extend_settings |
admin_area_site_settings |
Browser metrics Passed 4 tests
CMS admin area: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,849 ▲253 | 17.51 ▲1.64 | 10.48 ▼0.00 | 48.45 ▲3.48 |
Dashboard /wp-admin | 3,129 ▲205 | 8.01 ▲1.86 | 171.08 ▲14.52 | 103.76 ▼12.49 |
Posts /wp-admin/edit.php | 2,924 ▲185 | 4.42 ▲1.71 | 87.76 ▲18.93 | 90.41 ▼1.82 |
Add New Post /wp-admin/post-new.php | 1,626 ▲126 | 21.13 ▲2.59 | 299.50 ▼87.41 | 134.22 ▲18.27 |
Media Library /wp-admin/upload.php | 1,770 ▼37 | 4.71 ▼0.31 | 162.01 ▼4.45 | 117.43 ▼22.32 |
Admin Area Options /wp-admin/options-general.php?page=admin-area-options | 1,425 | 3.80 | 78.88 | 92.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/cms-admin-area/adminarea.php+21
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 3 options
- admin_area_site_settings
- admin_area_display_settings
- admin_area_extend_settings
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=admin-area-options
- > Deprecated in wp-content/plugins/cms-admin-area/adminarea.php+21
Function create_function() is deprecated
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 take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cms-admin-area/adminarea.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/cms-admin-area/views/option-page.php:4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=admin-area-options
- > Javascript (severe) in unknown
/wp-content/plugins/cms-admin-area/assets/common.js?ver=1.0 4:34 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Screenshot #1 (user-friendly horizontal menu and new dashboard metaboxes) image required
cms-admin-area/adminarea.php 85% from 13 tests
"CMS admin area" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 203 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("cms-admin-area.php" instead of "adminarea.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,496 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 343 | 93 | 759 |
CSS | 3 | 160 | 26 | 542 |
PO File | 2 | 61 | 61 | 154 |
JavaScript | 2 | 20 | 8 | 41 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 5 | 8.93% |
▷ Public methods | 56 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 compressed PNG files occupy 0.02MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 18.53KB | 18.04KB | ▼ 2.66% |
assets/images/theme.png | 2.04KB | 1.93KB | ▼ 5.49% |
assets/images/Database.png | 0.80KB | 0.75KB | ▼ 6.38% |
assets/images/widget.png | 0.82KB | 0.87KB | 0.00% |