Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.67MB] [CPU: ▼15.01ms] Passed 4 tests
An overview of server-side resources used by Great Index
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 40.53 ▼0.21 |
Dashboard /wp-admin | 3.34 ▲0.03 | 52.76 ▲3.33 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.71 ▼5.44 |
Add New Post /wp-admin/post-new.php | 3.12 ▼2.77 | 36.78 ▼57.72 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.78 ▲3.54 |
Categories /wp-admin/edit-tags.php?taxonomy=portfolio_categories&post_type=portfolio | 3.25 | 33.39 |
Index /wp-admin/edit.php?post_type=portfolio | 3.30 | 35.69 |
Add New /wp-admin/post-new.php?post_type=portfolio | 3.12 | 33.26 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Great Index: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲88 | 13.77 ▼0.61 | 1.79 ▼0.21 | 43.37 ▼0.03 |
Dashboard /wp-admin | 2,237 ▲52 | 5.90 ▼0.02 | 98.53 ▼5.22 | 39.34 ▼7.99 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.03 ▲0.02 | 36.02 ▼3.43 | 34.63 ▼0.23 |
Add New Post /wp-admin/post-new.php | 1,565 ▲46 | 23.11 ▼0.26 | 671.92 ▼4.84 | 56.59 ▲2.43 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.18 ▼0.02 | 97.40 ▼11.14 | 44.59 ▼1.70 |
Categories /wp-admin/edit-tags.php?taxonomy=portfolio_categories&post_type=portfolio | 1,296 | 2.14 | 25.72 | 28.91 |
Index /wp-admin/edit.php?post_type=portfolio | 1,101 | 1.93 | 32.08 | 31.10 |
Add New /wp-admin/post-new.php?post_type=portfolio | 2,353 | 7.63 | 171.27 | 60.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=portfolio
- > Notice in wp-content/plugins/great-index/great-index.php+203
Trying to get property 'ID' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=portfolio
- > Notice in wp-content/plugins/great-index/great-index.php+180
Undefined index: title
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=portfolio
- > Notice in wp-content/plugins/great-index/great-index.php+181
Undefined index: Location
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=portfolio
- > Notice in wp-content/plugins/great-index/great-index.php+182
Undefined index: Phone
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=portfolio
- > Notice in wp-content/plugins/great-index/great-index.php+183
Undefined index: Email
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=portfolio
- > Notice in wp-content/plugins/great-index/great-index.php+184
Undefined index: Website
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=portfolio
- > Notice in wp-content/plugins/great-index/great-index.php+184
Trying to access array offset on value of type null
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
Please fix the following
- 1× 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/great-index/great-index.php:43
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== great-index ===
)
great-index/great-index.php 92% from 13 tests
The primary PHP file in "Great Index" version 0.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 144 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected308 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 0 | 33 | 172 |
CSS | 2 | 2 | 14 | 113 |
JavaScript | 1 | 8 | 11 | 23 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
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 | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/phone.png | 3.23KB | 0.71KB | ▼ 78.17% |
images/email.png | 3.49KB | 1.13KB | ▼ 67.57% |
(invalid) images/default-img.png | 7.38KB | 0.00KB | ▼ 100.00% |
images/website.png | 3.32KB | 0.85KB | ▼ 74.52% |
images/location.png | 3.10KB | 0.61KB | ▼ 80.20% |