Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼138.34ms] Passed 4 tests
A check of server-side resources used by Powearch
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.03 | 34.56 ▼4.08 |
Dashboard /wp-admin | 3.19 ▲0.14 | 57.23 ▲14.65 |
Posts /wp-admin/edit.php | 3.24 ▲0.13 | 52.58 ▲9.57 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.03 | 99.69 ▼551.56 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 27.96 ▼7.29 |
Powearch /wp-admin/options-general.php?page=powearch_setting | 3.05 | 36.52 |
Server storage [IO: ▲0.18MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 1 new option
New WordPress options |
---|
powearch_basics |
Browser metrics Passed 4 tests
Checking browser requirements for Powearch
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,925 ▲353 | 17.66 ▲1.78 | 8.66 ▼3.16 | 49.51 ▲1.00 |
Dashboard /wp-admin | 3,203 ▲269 | 8.07 ▲2.17 | 167.54 ▲22.27 | 121.85 ▲7.55 |
Posts /wp-admin/edit.php | 3,001 ▲262 | 4.47 ▲1.65 | 86.15 ▲20.10 | 105.52 ▲10.77 |
Add New Post /wp-admin/post-new.php | 1,695 ▲23 | 18.73 ▼0.30 | 362.65 ▼31.30 | 114.17 ▲3.83 |
Media Library /wp-admin/upload.php | 1,850 ▲43 | 4.93 ▼0.09 | 116.69 ▼42.36 | 130.55 ▲7.93 |
Powearch /wp-admin/options-general.php?page=powearch_setting | 1,628 | 4.56 | 97.09 | 95.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- powearch_basics
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'settingApi' not found in wp-content/plugins/powearch/inc/powearchAdmin.php:14
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=powearch_setting
- > Network (severe)
wp-content/plugins/assets/js/mousetrap.min.js - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Screenshot #2 (Setting page screen) image missing
powearch/powearch.php Passed 13 tests
The entry point to "Powearch" version 1.0.0 is a PHP file that has certain tags in its header comment area
86 characters long description:
Is a powerful search plugin for WordPress users.Start by pressing SHIFT key two times.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin3,725 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 27 | 23 | 2,556 |
PHP | 3 | 125 | 277 | 799 |
CSS | 1 | 29 | 11 | 248 |
PO File | 2 | 38 | 38 | 108 |
Markdown | 1 | 7 | 0 | 14 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 44.67 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 3.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 4 | 7.55% |
▷ Public methods | 50 | 94.34% |
▷ Protected methods | 3 | 5.66% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/enter_key.png | 0.23KB | 0.28KB | 0.00% |