Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.55ms] Passed 4 tests
Server-side resources used by MM Search
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.68 ▼6.49 |
Dashboard /wp-admin | 3.35 ▲0.00 | 48.93 ▼15.09 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.89 ▼3.05 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 96.78 ▼1.58 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 40.74 ▲2.58 |
About MM Search /wp-admin/admin.php?page=mm-search-about | 3.23 | 33.61 |
MM Search Settings /wp-admin/admin.php?page=mm-search-settings | 3.21 | 32.79 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for MM Search
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲81 | 13.21 ▼0.99 | 1.76 ▼0.21 | 41.11 ▲2.12 |
Dashboard /wp-admin | 2,248 ▲45 | 5.85 ▲0.92 | 108.65 ▲4.28 | 42.54 ▼0.88 |
Posts /wp-admin/edit.php | 2,127 ▲24 | 1.98 ▼0.01 | 39.81 ▼1.35 | 35.51 ▼2.52 |
Add New Post /wp-admin/post-new.php | 1,554 ▲22 | 23.24 ▼0.06 | 688.60 ▲91.29 | 60.07 ▲10.01 |
Media Library /wp-admin/upload.php | 1,427 ▲30 | 4.20 ▲0.03 | 106.59 ▲6.28 | 45.16 ▲0.97 |
About MM Search /wp-admin/admin.php?page=mm-search-about | 850 | 2.02 | 25.29 | 30.66 |
MM Search Settings /wp-admin/admin.php?page=mm-search-settings | 830 | 2.07 | 23.44 | 27.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=mm-search-settings
- > Notice in wp-content/plugins/mm-search/admin/settings.php+5
Undefined index: mm-search-update-option
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
require_once(MM_SEARCH_ADMIN_DIR/about.php): failed to open stream: No such file or directory in wp-content/plugins/mm-search/admin/admin.php on line 4
- > PHP Warning
Use of undefined constant MM_SEARCH_ADMIN_DIR - assumed 'MM_SEARCH_ADMIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/mm-search/admin/admin.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mm-search/search.php:17
- > PHP Fatal error
require_once(): Failed opening required 'MM_SEARCH_ADMIN_DIR/about.php' (include_path='.:/usr/share/php') in wp-content/plugins/mm-search/admin/admin.php on line 4
- > PHP Warning
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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== mm-search ===
)
mm-search/search.php 92% from 13 tests
"MM Search" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mm-search.php" instead of "search.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin153 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 31 | 45 | 153 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 3 | 100.00% |
▷ Public methods | 2 | 66.67% |
▷ Protected methods | 1 | 33.33% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected