Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▼3.61ms] Passed 4 tests
This is a short check of server-side resources used by EasyIndex
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 46.24 ▲5.06 |
Dashboard /wp-admin | 3.58 ▲0.28 | 51.71 ▼4.92 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 53.96 ▲3.01 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 93.44 ▼7.58 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 38.28 ▼4.95 |
Help /wp-admin/admin.php?page=EasyIndexHelp | 3.59 | 34.68 |
Add New /wp-admin/post-new.php?post_type=easyindex | 4.42 | 74.04 |
All Indexes /wp-admin/edit.php?post_type=easyindex | 3.55 | 39.73 |
Settings /wp-admin/admin.php?page=EasyIndex | 3.62 | 44.45 |
Server storage [IO: ▲0.98MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 202 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
EasyIndex |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
EasyIndex: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲110 | 14.80 ▲0.47 | 1.82 ▲0.11 | 43.42 ▲0.38 |
Dashboard /wp-admin | 2,262 ▲77 | 5.86 ▼0.19 | 103.79 ▼0.36 | 73.42 ▲27.84 |
Posts /wp-admin/edit.php | 2,148 ▲59 | 2.06 ▲0.03 | 34.62 ▼6.00 | 32.36 ▼3.59 |
Add New Post /wp-admin/post-new.php | 6,422 ▲4,908 | 27.45 ▲9.80 | 894.47 ▲239.20 | 54.53 ▲3.03 |
Media Library /wp-admin/upload.php | 1,432 ▲44 | 4.25 ▲0.04 | 96.56 ▼9.60 | 71.84 ▲27.55 |
Help /wp-admin/admin.php?page=EasyIndexHelp | 1,438 | 9.20 | 292.74 | 81.74 |
Add New /wp-admin/post-new.php?post_type=easyindex | 3,498 | 4.05 | 88.42 | 116.96 |
All Indexes /wp-admin/edit.php?post_type=easyindex | 1,106 | 1.98 | 33.12 | 27.82 |
Settings /wp-admin/admin.php?page=EasyIndex | 1,647 | 3.53 | 85.00 | 98.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/easyindex/easyindex.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Walker' not found in wp-content/plugins/easyindex/lib/EasyIndexWalker.php:24
- > PHP Fatal error
Uncaught Error: Class 'EasyIndexImage' not found in wp-content/plugins/easyindex/lib/EasyIndexImageGD.php:24
- > PHP Fatal error
Uncaught Error: Class 'EasyIndexImage' not found in wp-content/plugins/easyindex/lib/EasyIndexImageIMagick.php:25
- > PHP Fatal error
Uncaught Error: Class 'EasyIndexThumbnailBase' not found in wp-content/plugins/easyindex/lib/EasyIndexThumbnail.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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
7 plugin tags: visual index, product index, thumbnail gallery, index, post index...
easyindex/easyindex.php Passed 13 tests
The main file in "EasyIndex" v. 1.1.1704 serves as a complement to information provided in readme.txt and as the entry point to the plugin
28 characters long description:
WordPress indexes made easy.
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
No dangerous file extensions were detected9,828 lines of code in 110 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 1,275 | 3,097 | 4,548 |
CSS | 17 | 25 | 159 | 3,097 |
HTML | 26 | 141 | 185 | 1,230 |
JSON | 37 | 0 | 0 | 923 |
SVG | 1 | 0 | 0 | 17 |
JavaScript | 4 | 0 | 12 | 13 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 32.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 128.00 |
Average method complexity | 4.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 1 | 3.85% |
▷ Concrete classes | 25 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 226 | |
▷ Static methods | 15 | 6.64% |
▷ Public methods | 197 | 87.17% |
▷ Protected methods | 3 | 1.33% |
▷ Private methods | 26 | 11.50% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 29 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 29 | 100.00% |
▷ Public constants | 29 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
43 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ui/1.11.4/images/ui-icons_469bdd_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
ui/1.11.4/images/ui-icons_cd0a0a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
ui/1.11.4/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.21KB | 0.08KB | ▼ 58.96% |
images/logo17.png | 0.37KB | 0.30KB | ▼ 19.84% |
ui/1.11.4/images/ui-bg_glass_85_dfeffc_1x400.png | 0.33KB | 0.16KB | ▼ 53.08% |