Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.50ms] Passed 4 tests
This is a short check of server-side resources used by Eye-candy theme by WordPress Monsters
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.04 | 45.31 ▲0.73 |
Dashboard /wp-admin | 3.69 ▲0.06 | 55.85 ▼12.54 |
Posts /wp-admin/edit.php | 3.75 ▲0.07 | 53.02 ▲2.38 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.06 | 96.08 ▲6.50 |
Media Library /wp-admin/upload.php | 3.53 ▲0.04 | 38.67 ▼0.56 |
Eye Candy settings /wp-admin/themes.php?page=eye-candy-settings | 3.53 | 38.04 |
Server storage [IO: ▲0.99MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Eye-candy theme by WordPress Monsters
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,960 ▲199 | 14.33 ▼0.03 | 1.99 ▲0.05 | 38.19 ▼2.87 |
Dashboard /wp-admin | 2,338 ▲161 | 6.20 ▲0.50 | 110.17 ▲17.99 | 43.59 ▼0.38 |
Posts /wp-admin/edit.php | 2,269 ▲169 | 3.39 ▲1.42 | 51.82 ▲12.52 | 36.17 ▲1.42 |
Add New Post /wp-admin/post-new.php | 1,548 ▲17 | 23.56 ▲0.43 | 586.42 ▼86.41 | 32.95 ▼18.64 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.05 ▼0.20 | 87.76 ▼26.88 | 48.03 ▼2.37 |
Eye Candy settings /wp-admin/themes.php?page=eye-candy-settings | 981 | 3.17 | 40.50 | 31.46 |
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 detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
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 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
The following issues need your attention
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eye-candy-theme-by-sws/includes/options-page.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function update_user_meta() in wp-content/plugins/eye-candy-theme-by-sws/uninstall.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/eye-candy-theme-by-sws/eye-candy-theme-by-sws.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eye-candy-theme-by-sws/includes/options-page-style.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eye-candy-theme-by-sws/includes/init.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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:
- Screenshots: These screenshots do not have images: #1 (Options page), #2 (Admin dashboard view), #3 (Add/Edit post view), #4 (Activation in user profile)
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
eye-candy-theme-by-sws/eye-candy-theme-by-sws.php 92% from 13 tests
The main PHP script in "Eye-candy theme by WordPress Monsters" version 1.0.3 is automatically included on every request by WordPress
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 234 characters long)
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 plugin2,149 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Sass | 2 | 195 | 0 | 986 |
CSS | 1 | 210 | 4 | 870 |
PHP | 5 | 66 | 43 | 212 |
JavaScript | 2 | 36 | 2 | 81 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.80MB with 0.56MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 298.03KB | 90.53KB | ▼ 69.62% |
screenshot-4.png | 76.09KB | 22.41KB | ▼ 70.54% |
screenshot-3.png | 357.10KB | 104.57KB | ▼ 70.72% |
screenshot-1.png | 88.88KB | 27.83KB | ▼ 68.69% |