Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- This plugin did not install gracefully
- > Warning in wp-content/plugins/say-what/say-what-frontend.php+22
Invalid argument supplied for foreach()
Server metrics [RAM: ▲0.09MB] [CPU: ▼0.59ms] Passed 4 tests
A check of server-side resources used by Say what?
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.88 ▲0.43 |
Dashboard /wp-admin | 3.40 ▲0.09 | 47.67 ▼1.51 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 46.63 ▲2.37 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 97.94 ▼3.63 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.44 ▲2.97 |
Text changes /wp-admin/tools.php?page=say_what_admin | 3.34 | 34.17 |
Server storage [IO: ▲2.34MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 56 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_say_what_strings |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
say_what_db_version |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Say what?
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲90 | 14.24 ▼0.10 | 2.72 ▲0.90 | 38.18 ▼6.08 |
Dashboard /wp-admin | 2,198 ▲17 | 5.55 ▼0.15 | 92.51 ▼15.54 | 39.77 ▲0.90 |
Posts /wp-admin/edit.php | 2,112 ▲9 | 2.04 ▲0.02 | 38.69 ▼0.73 | 34.21 ▼1.27 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.01 ▼0.17 | 668.75 ▲64.70 | 56.01 ▲2.70 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.13 ▼0.06 | 98.63 ▲1.02 | 40.01 ▼3.45 |
Text changes /wp-admin/tools.php?page=say_what_admin | 1,052 | 2.12 | 25.11 | 56.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_say_what_strings
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- say_what_db_version
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/say-what/say-what-list-table.class.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/say-what/html/say-what-admin-delete.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI\\CommandWithDBObject' not found in wp-content/plugins/say-what/say-what-cli.class.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/say-what/html/say-what-admin-list.php:3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/say-what/say-what-list-table.class.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/say-what/html/say-what-admin-addedit.php:3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/say-what/say-what-list-table.class.php on line 4
- > PHP Warning
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)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: translation, string, change
say-what/say-what.php Passed 13 tests
The main PHP script in "Say what?" version 2.1.6 is automatically included on every request by WordPress
114 characters long description:
An easy-to-use plugin that allows you to alter strings on your site without editing WordPress core, or plugin code
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin19,560 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 18,603 |
PHP | 10 | 99 | 359 | 712 |
JavaScript | 3 | 6 | 27 | 110 |
CSS | 1 | 19 | 0 | 93 |
HTML | 1 | 0 | 0 | 28 |
YAML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 9.67 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 41 | 78.85% |
▷ Protected methods | 4 | 7.69% |
▷ Private methods | 7 | 13.46% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 1.26MB with 0.78MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
banner-772x250.png | 303.90KB | 124.74KB | ▼ 58.95% |
screenshot-1.png | 59.54KB | 18.98KB | ▼ 68.12% |
img/cpw.png | 882.77KB | 316.94KB | ▼ 64.10% |
screenshot-2.png | 42.01KB | 12.50KB | ▼ 70.25% |
img/logo.png | 0.87KB | 0.44KB | ▼ 49.55% |