Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.08ms] Passed 4 tests
Server-side resources used by Search and Menu Popup
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 36.53 ▼3.72 |
Dashboard /wp-admin | 3.34 ▲0.03 | 51.99 ▼5.29 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.66 ▲2.40 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 97.52 ▼1.30 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.06 ▼2.01 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Search and Menu Popup
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.30 ▼0.07 | 1.97 ▲0.26 | 50.09 ▲8.27 |
Dashboard /wp-admin | 2,192 ▲12 | 5.58 ▼0.12 | 91.76 ▲1.24 | 37.50 ▼5.25 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.00 ▼0.03 | 39.76 ▲0.88 | 35.31 ▲0.06 |
Add New Post /wp-admin/post-new.php | 1,545 ▼9 | 23.22 ▲4.57 | 676.40 ▼5.76 | 54.11 ▼10.51 |
Media Library /wp-admin/upload.php | 1,391 ▼12 | 4.22 ▼0.02 | 98.78 ▼4.30 | 42.04 ▲0.49 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/search-and-menu-popup/search-and-menu-popup.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
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
6 plugin tags: popup, modal, search, full screen popup on click, menu...
search-and-menu-popup/search-and-menu-popup.php Passed 13 tests
The main file in "Search and Menu Popup" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
53 characters long description:
Display Search OR Menu Popup by Clicking on a Button.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected81 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 24 | 38 | 57 |
CSS | 1 | 1 | 0 | 22 |
JavaScript | 2 | 0 | 22 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/menu.png | 2.77KB | 0.11KB | ▼ 96.15% |
assets/images/search.png | 3.45KB | 1.15KB | ▼ 66.72% |
assets/images/close.png | 3.91KB | 0.37KB | ▼ 90.48% |
assets/images/close-black.png | 4.68KB | 0.97KB | ▼ 79.31% |