Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.00ms] Passed 4 tests
A check of server-side resources used by underDEV
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 43.51 ▲2.42 |
Dashboard /wp-admin | 3.33 ▼0.01 | 51.01 ▼11.13 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.23 ▼0.84 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 89.25 ▼22.45 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.89 ▲3.07 |
underDEV /wp-admin/tools.php?page=underdev | 3.28 | 34.34 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 47 new files
Database: no new tables, 8 new options
New WordPress options |
---|
_underdev_settings_hash |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
_underdev_settings_config |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for underDEV
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲48 | 14.18 ▼0.41 | 1.73 ▼0.03 | 43.58 ▼0.81 |
Dashboard /wp-admin | 2,204 ▲27 | 5.84 ▲0.18 | 97.65 ▲5.02 | 42.56 ▼2.84 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.22 ▲0.18 | 42.71 ▲6.27 | 35.29 ▲0.72 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.33 ▲0.27 | 664.49 ▼13.91 | 62.67 ▲9.08 |
Media Library /wp-admin/upload.php | 1,409 ▲15 | 4.26 ▲0.07 | 99.09 ▼25.17 | 42.59 ▼2.17 |
underDEV /wp-admin/tools.php?page=underdev | 921 | 1.86 | 33.27 | 35.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
Please take a closer look at the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/underdev/views/settings/page.php:10
- > PHP Fatal error
Uncaught Error: Class 'BracketSpace\\underDEV\\Utils\\Settings' not found in wp-content/plugins/underdev/class/Settings.php:16
- > PHP Fatal error
Uncaught Error: Class 'BracketSpace\\underDEV\\Utils\\Cache\\Cache' not found in wp-content/plugins/underdev/class/Utils/Cache/ObjectCache.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/underdev/underdev.php:33
- > PHP Fatal error
Uncaught Error: Class 'BracketSpace\\underDEV\\Utils\\Cache\\Cache' not found in wp-content/plugins/underdev/class/Utils/Cache/Transient.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: debug, underdev, maintenance
underdev/underdev.php 92% from 13 tests
This is the main PHP file of "underDEV" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
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
No dangerous file extensions were detected4,738 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 495 | 885 | 2,569 |
PHP | 28 | 744 | 1,364 | 1,230 |
Sass | 7 | 45 | 0 | 866 |
XML | 2 | 9 | 4 | 46 |
JSON | 1 | 0 | 0 | 25 |
CSS | 2 | 2 | 2 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 6.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 23 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 136 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 135 | 99.26% |
▷ Protected methods | 1 | 0.74% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
There were not PNG files found in your plugin