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.07MB] [CPU: ▼2.51ms] Passed 4 tests
Analyzing server-side resources used by WAJ Admin Menu
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.10 ▼1.93 |
Dashboard /wp-admin | 3.38 ▲0.08 | 50.88 ▼2.63 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 49.88 ▼0.38 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 91.73 ▼5.09 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.46 ▲2.39 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 69 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WAJ Admin Menu
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.65 ▼0.74 | 1.75 ▼0.38 | 41.32 ▼7.19 |
Dashboard /wp-admin | 2,203 ▲29 | 5.76 ▼0.15 | 138.61 ▲21.67 | 76.91 ▲31.90 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.05 ▲0.02 | 40.69 ▲1.41 | 36.10 ▲0.61 |
Add New Post /wp-admin/post-new.php | 1,514 ▼0 | 17.70 ▼0.22 | 660.77 ▼33.84 | 55.40 ▲0.94 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.23 ▼0.02 | 96.89 ▼7.81 | 41.64 ▼2.21 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
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
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following items
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/waj-admin-menu/vendor/waughj/html-attribute/tests/HTMLAttributeTest.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function WaughJ\\WAJAdminMenu\\add_shortcode() in wp-content/plugins/waj-admin-menu/waj-admin-menu.php:23
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/waj-admin-menu/vendor/waughj/wp-admin-menu-manager/tests/WPAdminMenuManagerTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/waj-admin-menu/vendor/waughj/html-attribute-list/tests/HTMLAttributeListTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/waj-admin-menu/vendor/waughj/html-link/tests/HTMLLinkTest.php:6
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/waj-admin-menu/vendor/waughj/wp-admin-menu/tests/WPAdminMenuTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/waj-admin-menu/vendor/waughj/wp-post-list-converter/tests/WPPostListConverterTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/waj-admin-menu/vendor/waughj/test-hash-item/tests/TestHashItemTest.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: nav, html, admin menu, autogenerate
waj-admin-menu/waj-admin-menu.php Passed 13 tests
The entry point to "WAJ Admin Menu" version 1.2.1 is a PHP file that has certain tags in its header comment area
87 characters long description:
Simple plugin for automatically generating HTML content from menus created in WP admin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected2,549 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 310 | 228 | 1,941 |
JSON | 9 | 0 | 0 | 531 |
Markdown | 7 | 31 | 0 | 65 |
XML | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 7.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 158 | |
▷ Static methods | 22 | 13.92% |
▷ Public methods | 123 | 77.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 35 | 22.15% |
Functions | 29 | |
▷ Named functions | 21 | 72.41% |
▷ Anonymous functions | 8 | 27.59% |
Constants | 16 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 16 | 100.00% |
▷ Public constants | 16 | 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 were not PNG files found in your plugin