Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.65MB] [CPU: ▼21.87ms] Passed 4 tests
Server-side resources used by ACME Amazing Search
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.44 ▼0.02 | 30.79 ▼7.35 |
Dashboard /wp-admin | 3.37 ▲0.07 | 52.92 ▲1.49 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 51.64 ▲2.69 |
Add New Post /wp-admin/post-new.php | 3.20 ▼2.68 | 38.84 ▼82.12 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.69 ▲0.52 |
Search Tools /wp-admin/admin.php?page=acme-amazing-search | 3.47 | 34.95 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by ACME Amazing Search
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,979 ▲193 | 13.58 ▼0.79 | 14.85 ▲12.94 | 41.62 ▲1.62 |
Dashboard /wp-admin | 2,216 ▲47 | 5.58 ▼0.05 | 84.92 ▼21.55 | 39.64 ▼8.73 |
Posts /wp-admin/edit.php | 2,121 ▲16 | 1.99 ▼0.05 | 39.60 ▼2.69 | 35.55 ▼5.39 |
Add New Post /wp-admin/post-new.php | 1,553 ▲25 | 18.30 ▼4.81 | 658.12 ▲52.48 | 85.25 ▲30.36 |
Media Library /wp-admin/upload.php | 1,421 ▲24 | 4.23 ▲0.02 | 105.00 ▲1.49 | 41.59 ▲0.39 |
Search Tools /wp-admin/admin.php?page=acme-amazing-search | 1,237 | 2.04 | 27.34 | 32.09 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 25 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=acme-amazing-search
- > Notice in wp-content/plugins/acme-amazing-search/admin/partials/acme-amazing-search-admin-display.php+48
Trying to access array offset on value of type bool
SRP 0% 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
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/acme-amazing-search/ACME_AJAX.php
- > /wp-content/plugins/acme-amazing-search/public/partials/acme-amazing-search-public-display.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/acme-amazing-search/admin/partials/acme-amazing-search-admin-display.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/acme-amazing-search/public/partials/acme-amazing-search-public-shortcodes.php:39
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== acme-amazing-search ===
) - Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
acme-amazing-search/acme-amazing-search.php Passed 13 tests
The principal PHP file in "ACME Amazing Search" v. 2.0.13 is loaded by WordPress automatically on each request
62 characters long description:
A google style ultra fast search engine for WP and WooCommerce
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,602 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 234 | 817 | 1,108 |
PO File | 3 | 119 | 186 | 316 |
JavaScript | 2 | 12 | 23 | 125 |
CSS | 1 | 13 | 6 | 53 |
PHP code Passed 2 tests
Analyzing 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.29 |
Average class complexity | 15.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 3.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 2 | 5.41% |
▷ Public methods | 31 | 83.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 16.22% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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