Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.26ms] Passed 4 tests
Server-side resources used by Nmwdhj
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.99 ▼0.30 |
Dashboard /wp-admin | 3.37 ▲0.06 | 52.35 ▼3.09 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 47.09 ▼6.90 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 93.17 ▲1.33 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.69 ▼2.74 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Nmwdhj
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.22 ▼1.15 | 2.00 ▼0.27 | 46.15 ▲2.36 |
Dashboard /wp-admin | 2,200 ▲12 | 5.81 ▼0.07 | 113.28 ▲6.04 | 49.32 ▲8.01 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.98 ▼0.08 | 39.50 ▲1.63 | 32.57 ▼7.04 |
Add New Post /wp-admin/post-new.php | 1,540 ▲21 | 23.19 ▲0.01 | 686.35 ▲38.34 | 73.15 ▲11.74 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.17 ▲0.07 | 105.83 ▼17.30 | 42.84 ▼4.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 19× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Nmwdhj\\Views\\View' not found in wp-content/plugins/momtaz-nmwdhj/elements/views/Select.php:11
- > PHP Fatal error
Uncaught Error: Class 'Nmwdhj\\Views\\View' not found in wp-content/plugins/momtaz-nmwdhj/elements/views/Fieldset.php:11
- > PHP Fatal error
Uncaught Error: Class 'Nmwdhj\\Elements\\Element' not found in wp-content/plugins/momtaz-nmwdhj/elements/Input.php:9
- > PHP Fatal error
Uncaught Error: Class 'Nmwdhj\\Elements\\Fieldset' not found in wp-content/plugins/momtaz-nmwdhj/elements/Form.php:9
- > PHP Fatal error
Uncaught Error: Class 'Nmwdhj\\Views\\View' not found in wp-content/plugins/momtaz-nmwdhj/elements/views/Button.php:11
- > PHP Fatal error
Uncaught Error: Class 'Nmwdhj\\Elements\\Element' not found in wp-content/plugins/momtaz-nmwdhj/elements/Textarea.php:9
- > PHP Fatal error
Uncaught Error: Class 'Nmwdhj\\Views\\View' not found in wp-content/plugins/momtaz-nmwdhj/elements/views/Checkboxes.php:11
- > PHP Fatal error
Uncaught Error: Class 'Nmwdhj\\Views\\View' not found in wp-content/plugins/momtaz-nmwdhj/elements/views/Input.php:11
- > PHP Fatal error
Uncaught Error: Class 'Nmwdhj\\Views\\View' not found in wp-content/plugins/momtaz-nmwdhj/elements/views/Textarea.php:11
- > PHP Fatal error
Uncaught Error: Class 'Nmwdhj\\Elements\\Input' not found in wp-content/plugins/momtaz-nmwdhj/elements/Checkboxes.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
6 plugin tags: html, form, options, api, forms...
momtaz-nmwdhj/nmwdhj.php 92% from 13 tests
The primary PHP file in "Nmwdhj" version 1.3.4 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("momtaz-nmwdhj.php" instead of "nmwdhj.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,359 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 844 | 1,279 | 1,359 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 7.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 2 | 7.41% |
▷ Concrete classes | 25 | 92.59% |
▷ Final classes | 1 | 4.00% |
Methods | 143 | |
▷ Static methods | 10 | 6.99% |
▷ Public methods | 135 | 94.41% |
▷ Protected methods | 8 | 5.59% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected