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
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼3.63ms] Passed 4 tests
This is a short check of server-side resources used by Ajax Dropdowns
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 38.16 ▼3.31 |
Dashboard /wp-admin | 3.41 ▲0.10 | 50.76 ▼7.43 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 51.97 ▼0.06 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 99.68 ▼3.72 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 38.73 ▲1.75 |
Dropdowns /wp-admin/edit.php?post_type=ajax_dropdown | 3.37 | 40.87 |
Add New /wp-admin/post-new.php?post_type=ajax_dropdown | 3.39 | 48.80 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 107 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ajax Dropdowns
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲159 | 13.68 ▼0.94 | 5.25 ▲3.34 | 41.71 ▼2.46 |
Dashboard /wp-admin | 2,245 ▲42 | 4.86 ▼0.95 | 109.66 ▼11.91 | 41.82 ▼3.23 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 1.98 ▼0.04 | 39.92 ▲4.17 | 36.38 ▼0.81 |
Add New Post /wp-admin/post-new.php | 1,583 ▲43 | 18.33 ▼4.86 | 601.28 ▼80.69 | 51.87 ▼6.60 |
Media Library /wp-admin/upload.php | 1,424 ▲27 | 4.24 ▼0.01 | 98.04 ▼21.25 | 41.92 ▼8.31 |
Dropdowns /wp-admin/edit.php?post_type=ajax_dropdown | 1,088 | 1.99 | 30.69 | 34.48 |
Add New /wp-admin/post-new.php?post_type=ajax_dropdown | 1,678 | 2.78 | 57.05 | 65.51 |
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
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: option, tabs, dropdowns, inline, ajax...
ajax-dropdowns/ajax-dropdowns.php Passed 13 tests
"Ajax Dropdowns" version 0.9.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
62 characters long description:
Display a group of posts that can be switched using dropdowns.
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 detected769 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 10 | 25 | 419 |
PHP | 1 | 56 | 116 | 299 |
JavaScript | 2 | 5 | 6 | 46 |
Bourne Shell | 1 | 0 | 0 | 3 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 60.00 |
▷ Minimum class complexity | 60.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 4.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 13 | 68.42% |
▷ Public methods | 18 | 94.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.26% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/chosen/chosen-sprite@2x.png | 0.85KB | 0.83KB | ▼ 3.10% |
assets/images/chosen/chosen-sprite.png | 0.63KB | 0.88KB | 0.00% |