Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.84ms] Passed 4 tests
A check of server-side resources used by Conditional Widgets
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.12 ▼4.29 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.33 ▼9.08 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.65 ▼3.10 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 82.94 ▼6.88 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.71 ▼0.15 |
Server storage [IO: ▲0.19MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
conditional_widgets_version |
Browser metrics Passed 4 tests
A check of browser resources used by Conditional Widgets
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.26 ▼1.11 | 1.82 ▲0.07 | 41.79 ▼7.44 |
Dashboard /wp-admin | 2,206 ▲18 | 5.79 ▼0.12 | 96.04 ▼10.27 | 37.59 ▼7.00 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.01 | 38.82 ▼1.48 | 35.11 ▲0.96 |
Add New Post /wp-admin/post-new.php | 1,535 ▲3 | 22.89 ▼0.25 | 648.93 ▲3.12 | 52.47 ▲3.06 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.19 ▼0.03 | 97.75 ▲2.51 | 40.53 ▼0.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- conditional_widgets_version
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Walker' not found in wp-content/plugins/conditional-widgets/includes/class-walker-category-checklist.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/conditional-widgets/admin.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/conditional-widgets/form.php:9
- > PHP Fatal error
Uncaught Error: Class 'Walker' not found in wp-content/plugins/conditional-widgets/includes/class-walker-page-checklist.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/conditional-widgets/cets_conditional_widgets.php:57
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/conditional-widgets/update.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/conditional-widgets/logic.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Please add an image for screenshot #1 (Each widget gets an expandable form at the bottom of it for controlling display options on the home page and for both pages and categories.)
conditional-widgets/cets_conditional_widgets.php 85% from 13 tests
Analyzing the main PHP file in "Conditional Widgets" version 3.1
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("conditional-widgets.php" instead of "cets_conditional_widgets.php")
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin792 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 214 | 223 | 697 |
CSS | 1 | 0 | 1 | 95 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
.assets/screenshot-1.png | 14.67KB | 7.02KB | ▼ 52.16% |
screenshot-1.png | 14.67KB | 7.02KB | ▼ 52.16% |