Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.15MB] [CPU: ▲1.62ms] Passed 4 tests
A check of server-side resources used by Search Meter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.46 ▲0.04 |
Dashboard /wp-admin | 3.48 ▲0.18 | 54.22 ▲2.94 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 53.14 ▲8.04 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 95.26 ▼0.37 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 39.14 ▲3.85 |
Search Meter /wp-admin/options-general.php?page=search-meter/admin.php | 3.37 | 34.41 |
Search Meter /wp-admin/index.php?page=search-meter/admin.php | 3.34 | 31.42 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 9 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_searchmeter_recent |
wp_searchmeter |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent_searches |
widget_recent-posts |
can_compress_scripts |
widget_popular_searches |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Search Meter
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,871 ▲136 | 13.53 ▼0.65 | 1.87 ▼0.12 | 43.81 ▼4.86 |
Dashboard /wp-admin | 2,277 ▲86 | 5.88 ▲0.97 | 102.58 ▼2.42 | 37.50 ▼7.95 |
Posts /wp-admin/edit.php | 2,100 ▲8 | 2.01 ▼0.02 | 37.46 ▲0.46 | 33.71 ▼0.37 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 23.26 ▲5.68 | 607.23 ▼22.04 | 53.71 ▼8.75 |
Media Library /wp-admin/upload.php | 1,393 ▲2 | 4.20 ▼0.03 | 99.32 ▼15.20 | 42.70 ▼6.08 |
Search Meter /wp-admin/options-general.php?page=search-meter/admin.php | 941 | 2.17 | 26.33 | 27.51 |
Search Meter /wp-admin/index.php?page=search-meter/admin.php | 941 | 2.02 | 28.59 | 26.18 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- widget_popular_searches
- db_upgraded
- widget_recent_searches
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
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
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/index.php?page=search-meter/admin.php
- > Notice in wp-content/plugins/search-meter/admin.php+315
Trying to access array offset on value of type bool
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
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/search-meter/search-meter.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/search-meter/admin.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Screenshot #1 (The Search Meter administration interface, showing some of the reports available.) image required
search-meter/search-meter.php 92% from 13 tests
The principal PHP file in "Search Meter" v. 2.13.5 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 204 characters long)
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,040 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 166 | 133 | 829 |
PO File | 1 | 77 | 86 | 211 |
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.33 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 33 | |
▷ Named functions | 33 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
No PNG files were detected