Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- This plugin did not install gracefully
- > User deprecated in wp-includes/functions.php+5453
Function get_theme_data is deprecated since version 3.4.0! Use wp_get_theme() instead.
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.71ms] Passed 4 tests
An overview of server-side resources used by Genesis Simple Comments
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.79 ▼10.24 |
Dashboard /wp-admin | 3.31 ▼0.04 | 48.50 ▼17.36 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.13 ▲3.19 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.39 ▼1.36 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.51 ▼1.87 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Genesis Simple Comments
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.35 ▼0.22 | 2.03 ▲0.14 | 40.22 ▼1.66 |
Dashboard /wp-admin | 2,195 ▲24 | 5.63 ▲0.08 | 95.35 ▼8.73 | 41.32 ▼2.37 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.06 ▲0.06 | 39.51 ▲3.84 | 35.18 ▲0.35 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.21 ▲0.18 | 640.20 ▼56.64 | 56.94 ▲1.56 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.21 ▲0.01 | 96.35 ▼2.35 | 45.76 ▲3.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please take a closer look at the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/genesis-simple-comments/output.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/genesis-simple-comments/admin.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/genesis-simple-comments/plugin.php:19
- > 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 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare 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 (
=== genesis-simple-comments ===
)
genesis-simple-comments/plugin.php 92% from 13 tests
The entry point to "Genesis Simple Comments" version 1.0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("genesis-simple-comments.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,102 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 152 | 186 | 657 |
CSS | 1 | 28 | 44 | 295 |
PO File | 1 | 41 | 81 | 100 |
JavaScript | 1 | 13 | 23 | 50 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 67.00 |
▷ Minimum class complexity | 67.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 14.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
classes/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
classes/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
classes/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
classes/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
classes/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |