Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.27MB] [CPU: ▲3.28ms] Passed 4 tests
Server-side resources used by WXY Searchmark
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 49.00 ▲10.58 |
Dashboard /wp-admin | 3.56 ▲0.26 | 52.26 ▲2.66 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 48.83 ▲2.22 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 88.41 ▼1.18 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 43.65 ▲9.40 |
WXY Searchmark /wp-admin/options-general.php?page=wxy_searchmark_options_page | 3.55 | 39.37 |
Server storage [IO: ▲2.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 23 new files
Database: 1 new table, 10 new options
New tables |
---|
wp_wxy_searchmark_data |
New WordPress options |
---|
wxy_searchmark_registration_code |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
wxy_searchmark_registration_count |
widget_recent-comments |
wxy_searchmark_jal_db_version |
wxy_searchmark_registration_date |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WXY Searchmark
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 8,877 ▲6,131 | 17.87 ▲3.49 | 97.39 ▲95.68 | 48.23 ▲6.34 |
Dashboard /wp-admin | 5,138 ▲2,947 | 5.91 ▲1.03 | 204.18 ▲102.38 | 51.20 ▲6.10 |
Posts /wp-admin/edit.php | 5,018 ▲2,929 | 3.33 ▲1.27 | 140.14 ▲103.70 | 45.59 ▲7.17 |
Add New Post /wp-admin/post-new.php | 3,022 ▲1,508 | 24.42 ▲7.00 | 790.77 ▲114.69 | 72.15 ▲12.44 |
Media Library /wp-admin/upload.php | 4,342 ▲2,954 | 4.86 ▲0.67 | 199.62 ▲101.79 | 55.46 ▲7.91 |
WXY Searchmark /wp-admin/options-general.php?page=wxy_searchmark_options_page | 4,545 | 2.95 | 136.11 | 53.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/wxy-searchmark/options/wxy-tools-searchmark-options.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wxy-searchmark/wxy-tools-searchmark-plugin.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== wxy-searchmark ===
)
wxy-searchmark/wxy-tools-searchmark-plugin.php 85% from 13 tests
The principal PHP file in "WXY Searchmark" v. 1.0.9 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wxy-searchmark.php" instead of "wxy-tools-searchmark-plugin.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 194 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected7,316 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 2,364 | 2,108 | 4,525 |
PHP | 2 | 932 | 748 | 1,960 |
CSS | 1 | 109 | 43 | 503 |
HTML | 1 | 225 | 55 | 328 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 27 | 96.43% |
▷ Anonymous functions | 1 | 3.57% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
options/images/wxy-tools-searchmark-options-logo.png | 12.95KB | 5.66KB | ▼ 56.31% |
images/wxy-tools-searchmark-options-logo.png | 12.95KB | 5.66KB | ▼ 56.31% |