Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.93ms] Passed 4 tests
An overview of server-side resources used by Display Posts As List, Grid, Thumbs
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.18 ▼2.89 |
Dashboard /wp-admin | 3.35 ▲0.01 | 44.93 ▼14.84 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 47.85 ▲6.13 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 82.92 ▼4.87 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 32.45 ▼5.12 |
Add New /wp-admin/post-new.php?post_type=wpucv_list | 3.32 | 38.24 |
All Lists /wp-admin/edit.php?post_type=wpucv_list | 3.32 | 36.76 |
Server storage [IO: ▲5.56MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 254 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
wpucv_preview_images_url |
Browser metrics Passed 4 tests
A check of browser resources used by Display Posts As List, Grid, Thumbs
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,944 ▲198 | 13.81 ▼0.46 | 9.39 ▲7.89 | 41.80 ▲0.37 |
Dashboard /wp-admin | 2,225 ▲45 | 5.61 ▼0.06 | 89.97 ▲5.81 | 35.84 ▼3.24 |
Posts /wp-admin/edit.php | 2,130 ▲33 | 1.99 ▲0.01 | 38.83 ▲3.62 | 36.19 ▼1.64 |
Add New Post /wp-admin/post-new.php | 1,563 ▲37 | 18.56 ▼4.97 | 637.01 ▼54.46 | 68.60 ▲3.96 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.16 ▲0.03 | 94.54 ▼1.48 | 40.35 ▼5.69 |
Add New /wp-admin/post-new.php?post_type=wpucv_list | 4,736 | 5.65 | 160.18 | 84.70 |
All Lists /wp-admin/edit.php?post_type=wpucv_list | 1,110 | 1.98 | 30.34 | 29.36 |
Uninstaller [IO: ▲1.61MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- wpucv_preview_images_url
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 5× PHP files output text when accessed directly:
- > /wp-content/plugins/ultimate-content-views/inc/preview/templates/template04.php
- > /wp-content/plugins/ultimate-content-views/inc/preview/templates/template01.php
- > /wp-content/plugins/ultimate-content-views/inc/preview/templates/template02.php
- > /wp-content/plugins/ultimate-content-views/inc/preview/templates/template03.php
- > /wp-content/plugins/ultimate-content-views/inc/preview/templates/template07.php
- 27× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/ultimate-content-views/templates/template02.php:27
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/ultimate-content-views/templates/template07.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/ultimate-content-views/inc/options/list_structure.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/ultimate-content-views/inc/options/exclusion.php:6
- > PHP Notice
Undefined variable: the_query in wp-content/plugins/ultimate-content-views/templates/template07.php on line 3
- > PHP Notice
Undefined variable: the_query in wp-content/plugins/ultimate-content-views/templates/template02.php on line 27
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/ultimate-content-views/inc/preview/templates/template05.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/ultimate-content-views/inc/options/general.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/ultimate-content-views/inc/options/pagination.php:6
- > PHP Notice
Undefined variable: the_query in wp-content/plugins/ultimate-content-views/templates/template04.php on line 3
- > 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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (screenshot-1), #2 (screenshot-2), #3 (screenshot-3), #4 (screenshot-4), #5 (screenshot-5), #6 (screenshot-6)
ultimate-content-views/ultimate-content-views.php 92% from 13 tests
Analyzing the main PHP file in "Display Posts As List, Grid, Thumbs" version 4.3
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 219 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected26,132 lines of code in 106 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 14 | 100 | 135 | 16,143 |
PHP | 24 | 645 | 264 | 3,985 |
SVG | 1 | 0 | 0 | 2,671 |
JavaScript | 63 | 426 | 289 | 2,642 |
Sass | 2 | 63 | 0 | 682 |
Ruby | 1 | 5 | 7 | 8 |
JSON | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 142.67 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 207.00 |
Average method complexity | 8.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 41 | 70.69% |
▷ Public methods | 51 | 87.93% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 12.07% |
Functions | 7 | |
▷ Named functions | 7 | 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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
22 PNG files occupy 1.83MB with 1.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/owl.video.play.png | 4.86KB | 2.74KB | ▼ 43.61% |
images/templates/temp03.png | 2.83KB | 2.23KB | ▼ 21.40% |
screenshot-2.png | 139.44KB | 41.60KB | ▼ 70.17% |
images/mobile.png | 3.03KB | 0.39KB | ▼ 87.00% |
images/templates/temp05.png | 20.88KB | 0.93KB | ▼ 95.56% |