Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▲1.85ms] Passed 4 tests
This is a short check of server-side resources used by Search Manager Lite
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 42.13 ▲0.86 |
Dashboard /wp-admin | 3.42 ▲0.11 | 54.92 ▲8.00 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 49.28 ▲0.90 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 101.18 ▲4.20 |
Media Library /wp-admin/upload.php | 3.34 ▲0.10 | 37.48 ▲1.44 |
Search Manager Lite /wp-admin/options-general.php?page=wcstm-lite | 3.30 | 32.89 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Search Manager Lite
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲141 | 14.75 ▲0.57 | 1.69 ▼0.42 | 43.42 ▼6.42 |
Dashboard /wp-admin | 2,285 ▲97 | 5.91 ▲1.03 | 98.81 ▼29.45 | 40.08 ▼4.96 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.01 | 40.61 ▲2.58 | 34.48 ▼1.71 |
Add New Post /wp-admin/post-new.php | 1,537 ▲4 | 23.27 ▲0.22 | 646.81 ▲72.11 | 51.71 ▼4.47 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.24 ▲0.01 | 99.59 ▲1.95 | 41.81 ▼0.69 |
Search Manager Lite /wp-admin/options-general.php?page=wcstm-lite | 865 | 2.01 | 23.68 | 25.59 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/search-manager/admin/partials/tab-premium.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/search-manager/admin/partials/settings-sidebar.php:5
- > PHP Warning
Use of undefined constant WCSTM_LITE_PLUGIN_URL - assumed 'WCSTM_LITE_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/search-manager/admin/partials/settings-sidebar.php on line 3
- > 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)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (25 tag instead of maximum 10)
search-manager/search-manager.php 85% from 13 tests
The principal PHP file in "Search Manager Lite" v. 1.4 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Description: The description should be shorter than 140 characters (currently 191 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected731 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 226 | 81 | 679 |
CSS | 1 | 0 | 0 | 52 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 18.25 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 2 | 5.71% |
▷ Public methods | 33 | 94.29% |
▷ Protected methods | 2 | 5.71% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/search-manager-icon.png | 23.94KB | 2.63KB | ▼ 88.99% |