Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.93ms] Passed 4 tests
Server-side resources used by Demo User DZS - Showcase your admin safely
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 45.90 ▼7.17 |
Dashboard /wp-admin | 3.32 ▲0.02 | 55.14 ▲3.27 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 51.26 ▼0.13 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 90.34 ▼2.91 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.13 ▼1.52 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Demo User DZS - Showcase your admin safely
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲39 | 14.35 ▼0.00 | 1.84 ▼0.13 | 43.75 ▲1.44 |
Dashboard /wp-admin | 2,210 ▲30 | 5.59 ▲0.01 | 86.07 ▼14.79 | 42.30 ▼14.64 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.03 ▲0.02 | 34.66 ▼7.00 | 32.28 ▼4.15 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 23.00 ▼0.06 | 674.67 ▼7.90 | 60.60 ▲9.45 |
Media Library /wp-admin/upload.php | 1,412 ▲9 | 4.26 ▲0.05 | 98.92 ▼5.70 | 44.99 ▼0.51 |
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 were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 19× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant DZSDMU_BASE_PATH - assumed 'DZSDMU_BASE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/demo-user-dzs-showcase-your-admin-safely/demo_user.php on line 17
- > PHP Warning
include_once(DZSDMU_BASE_PATHinc/php/DzsDmuAjax.php): failed to open stream: No such file or directory in wp-content/plugins/demo-user-dzs-showcase-your-admin-safely/DzsDemoUser.php on line 5
- > PHP Warning
include_once(): Failed opening 'DZSDMU_BASE_PATHinc/php/DzsDmuAjax.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/demo-user-dzs-showcase-your-admin-safely/DzsDemoUser.php on line 5
- > PHP Warning
include_once(DZSDMU_BASE_PATHinc/php/DzsDmuAdmin.php): failed to open stream: No such file or directory in wp-content/plugins/demo-user-dzs-showcase-your-admin-safely/DzsDemoUser.php on line 4
- > PHP Warning
include_once(): Failed opening 'DZSDMU_BASE_PATHinc/php/DzsDmuAdmin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/demo-user-dzs-showcase-your-admin-safely/DzsDemoUser.php on line 4
- > PHP Warning
include_once(DZSDMU_BASE_PATH/DzsDemoUser.php): failed to open stream: No such file or directory in wp-content/plugins/demo-user-dzs-showcase-your-admin-safely/demo_user.php on line 23
- > PHP Warning
include_once(): Failed opening 'DZSDMU_BASE_PATH/dzsCommon_functions.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/demo-user-dzs-showcase-your-admin-safely/demo_user.php on line 21
- > PHP Warning
Use of undefined constant DZSDMU_BASE_PATH - assumed 'DZSDMU_BASE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/demo-user-dzs-showcase-your-admin-safely/demo_user.php on line 23
- > PHP Warning
Use of undefined constant DZSDMU_BASE_PATH - assumed 'DZSDMU_BASE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/demo-user-dzs-showcase-your-admin-safely/demo_user.php on line 21
- > PHP Warning
include_once(): Failed opening 'DZSDMU_BASE_PATHconfigs/constants.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/demo-user-dzs-showcase-your-admin-safely/demo_user.php on line 16
- > PHP Warning
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 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: spam, comments
demo-user-dzs-showcase-your-admin-safely/demo_user.php 92% from 13 tests
The entry point to "Demo User DZS - Showcase your admin safely" version 1.1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("demo-user-dzs-showcase-your-admin-safely.php" instead of "demo_user.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,113 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 251 | 49 | 787 |
Sass | 3 | 40 | 0 | 152 |
CSS | 1 | 16 | 4 | 127 |
JavaScript | 4 | 20 | 0 | 47 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 5.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 18 | 58.06% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 2 | 22.22% |
▷ Class constants | 7 | 77.78% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin