Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/manadmin/man-admin.php+14
Undefined index: stop_record
Server metrics [RAM: ▼1.89MB] [CPU: ▼57.53ms] Passed 4 tests
An overview of server-side resources used by Man Admin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 4.77 ▼37.07 |
Dashboard /wp-admin | 2.11 ▼1.19 | 5.62 ▼46.92 |
Posts /wp-admin/edit.php | 2.11 ▼1.24 | 5.41 ▼43.67 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.77 | 6.17 ▼102.46 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 5.18 ▼33.89 |
Read /wp-admin/admin.php?page=manadmin | 2.11 | 5.53 |
Edit /wp-admin/admin.php?page=manadmin_edit | 2.11 | 5.73 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_manadmin |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Man Admin: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.26 ▼0.10 | 1.77 ▼0.00 | 38.84 ▼2.69 |
Dashboard /wp-admin | 2,222 ▲45 | 5.56 ▼0.10 | 97.34 ▲10.30 | 43.57 ▲0.71 |
Posts /wp-admin/edit.php | 2,130 ▲30 | 1.99 ▼0.05 | 39.81 ▼2.05 | 35.72 ▼0.82 |
Add New Post /wp-admin/post-new.php | 1,559 ▲33 | 18.32 ▼5.41 | 662.71 ▼28.15 | 63.06 ▲3.13 |
Media Library /wp-admin/upload.php | 1,421 ▲24 | 4.21 ▼0.05 | 101.11 ▼4.26 | 42.75 ▼3.79 |
Read /wp-admin/admin.php?page=manadmin | 785 | 2.00 | 27.80 | 23.66 |
Edit /wp-admin/admin.php?page=manadmin_edit | 1,637 | 6.56 | 146.71 | 42.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/manadmin/man-admin.php+14
Undefined index: stop_record
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=manadmin_edit
- > Notice in wp-content/plugins/manadmin/class.manadmin-admin.php+126
Undefined index: stop_record
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=manadmin_edit
- > Notice in wp-content/plugins/manadmin/man-admin.php+18
Undefined index: start_record
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=manadmin_edit
- > Notice in wp-content/plugins/manadmin/views/edit-layout.php+85
Undefined index: visited
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=manadmin_edit
- > Notice in wp-content/plugins/manadmin/class.manadmin-admin.php+118
Trying to get property 'text' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=manadmin_edit
- > Notice in wp-content/plugins/manadmin/class.manadmin-admin.php+118
Undefined index: old_version
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/manadmin/views/view-layout.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: data in wp-content/plugins/manadmin/views/view-layout.php on line 5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/manadmin/views/view-layout.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/manadmin/man-admin.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_editor() in wp-content/plugins/manadmin/views/edit-layout.php:12
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: admin panel
manadmin/man-admin.php 92% from 13 tests
The primary PHP file in "Man Admin" version 0.5 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("manadmin.php" instead of "man-admin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin470 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 63 | 23 | 300 |
JavaScript | 1 | 27 | 3 | 114 |
PO File | 1 | 18 | 23 | 54 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 1 | 5.56% |
▷ Public methods | 11 | 61.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 38.89% |
Functions | 2 | |
▷ Named functions | 2 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin