Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Compile warning in wp-content/plugins/compound-searcher/compound_searcher.php+28
declare(encoding=...) ignored because Zend multibyte feature is turned off by settings
Server metrics [RAM: ▲0.12MB] [CPU: ▼141.39ms] Passed 4 tests
A check of server-side resources used by Compound Searcher
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.97 ▲0.14 | 43.45 ▲10.81 |
Dashboard /wp-admin | 3.19 ▲0.13 | 48.28 ▼1.40 |
Posts /wp-admin/edit.php | 3.29 ▲0.19 | 48.65 ▲1.58 |
Add New Post /wp-admin/post-new.php | 5.53 ▲0.10 | 92.73 ▼567.67 |
Media Library /wp-admin/upload.php | 3.12 ▲0.12 | 36.95 ▲1.95 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Compound Searcher
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,905 ▲299 | 16.60 ▲1.02 | 12.50 ▲2.81 | 55.07 ▲4.55 |
Dashboard /wp-admin | 2,989 ▲58 | 5.98 ▼0.03 | 144.64 ▼1.74 | 114.15 ▼2.89 |
Posts /wp-admin/edit.php | 2,784 ▲45 | 2.68 ▼0.01 | 65.27 ▼12.57 | 104.22 ▲6.93 |
Add New Post /wp-admin/post-new.php | 1,628 ▲128 | 21.33 ▲2.63 | 272.45 ▼114.72 | 132.03 ▲16.78 |
Media Library /wp-admin/upload.php | 1,851 ▲44 | 5.04 ▲0.03 | 167.26 ▲16.34 | 130.46 ▼4.03 |
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
These items require your attention
- Uninstall procedure had uncaught errors
- > Compile warning in wp-content/plugins/compound-searcher/compound_searcher.php+28
declare(encoding=...) ignored because Zend multibyte feature is turned off by settings
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
declare(encoding=...) ignored because Zend multibyte feature is turned off by settings in wp-content/plugins/compound-searcher/compound_searcher.php on line 28
- > PHP Fatal error
Uncaught Error: Call to undefined function CompoundSearcher\\add_action() in wp-content/plugins/compound-searcher/compound_searcher.php:36
- > PHP Warning
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
1 plugin tags: search
compound-searcher/compound_searcher.php 92% from 13 tests
This is the main PHP file of "Compound Searcher" version 0.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("compound-searcher.php" instead of "compound_searcher.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 plugin1,234 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 49 | 142 | 455 |
HTML | 1 | 56 | 5 | 401 |
CSS | 2 | 22 | 20 | 155 |
SVG | 1 | 0 | 0 | 133 |
JavaScript | 1 | 1 | 6 | 90 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 33 | |
▷ Named functions | 14 | 42.42% |
▷ Anonymous functions | 19 | 57.58% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin