Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.90MB] [CPU: ▲6.51ms] Passed 4 tests
This is a short check of server-side resources used by Conditional Content
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.39 ▲0.93 | 59.20 ▲10.65 |
Dashboard /wp-admin | 4.21 ▲0.90 | 54.14 ▲0.46 |
Posts /wp-admin/edit.php | 4.26 ▲0.90 | 60.56 ▲10.05 |
Add New Post /wp-admin/post-new.php | 6.79 ▲0.90 | 101.70 ▲9.98 |
Media Library /wp-admin/upload.php | 4.13 ▲0.90 | 41.97 ▲5.53 |
Conditional Content /wp-admin/options-general.php?page=ConditionalContent | 4.04 | 37.91 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 180 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_conditional_content_widget |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Conditional Content
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.42 ▲0.01 | 2.01 ▲0.29 | 45.98 ▲1.93 |
Dashboard /wp-admin | 2,199 ▲19 | 5.64 ▼0.02 | 92.54 ▲2.15 | 43.98 ▲1.34 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.04 | 44.74 ▲6.50 | 37.38 ▼0.04 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.27 ▼0.08 | 665.09 ▼9.97 | 55.97 ▼5.02 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.20 ▲0.07 | 97.03 ▼6.68 | 43.44 ▲0.57 |
Conditional Content /wp-admin/options-general.php?page=ConditionalContent | 1,897 | 5.35 | 114.14 | 80.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 101× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'League\\JsonGuard\\Constraints\\ParentSchemaAwareContainerInstanceConstraint' not found in wp-content/plugins/conditional-content/vendor/league/json-guard/src/Constraints/AdditionalProperties.php:10
- > PHP Fatal error
Uncaught Error: Class 'com\\extremeidea\\php\\tools\\log4php\\LoggerPatternConverter' not found in wp-content/plugins/conditional-content/vendor/com.extremeidea.php/log4php/pattern/LoggerPatternConverterMDC.php:33
- > PHP Fatal error
Uncaught Error: Interface 'League\\JsonGuard\\Loader' not found in wp-content/plugins/conditional-content/vendor/league/json-guard/src/Loaders/FileLoader.php:9
- > PHP Fatal error
Uncaught Error: Class 'com\\extremeidea\\php\\tools\\log4php\\LoggerAppenderDailyFile' not found in wp-content/plugins/conditional-content/classes/core/LoggerAppenderDailyFile.php:21
- > PHP Fatal error
Uncaught Error: Class 'com\\extremeidea\\php\\tools\\log4php\\LoggerPatternConverter' not found in wp-content/plugins/conditional-content/vendor/com.extremeidea.php/log4php/pattern/LoggerPatternConverterLevel.php:30
- > PHP Fatal error
Uncaught Error: Class 'com\\extremeidea\\php\\tools\\log4php\\LoggerConfigurable' not found in wp-content/plugins/conditional-content/vendor/com.extremeidea.php/log4php/LoggerAppender.php:28
- > PHP Fatal error
Uncaught Error: Class 'com\\extremeidea\\php\\tools\\log4php\\LoggerPatternConverter' not found in wp-content/plugins/conditional-content/vendor/com.extremeidea.php/log4php/pattern/LoggerPatternConverterLocation.php:31
- > PHP Fatal error
Uncaught Error: Interface 'League\\JsonGuard\\Constraints\\ContainerInstanceConstraint' not found in wp-content/plugins/conditional-content/vendor/league/json-guard/src/Constraints/Items.php:8
- > PHP Fatal error
Uncaught Error: Interface 'League\\JsonGuard\\Constraints\\ParentSchemaAwarePropertyConstraint' not found in wp-content/plugins/conditional-content/vendor/league/json-guard/src/Constraints/Max.php:9
- > PHP Fatal error
Uncaught Error: Interface 'League\\JsonGuard\\Constraints\\Constraint' not found in wp-content/plugins/conditional-content/vendor/league/json-guard/src/Constraints/PropertyConstraint.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
conditional-content/conditional-content.php Passed 13 tests
The principal PHP file in "Conditional Content" v. 1.0.1 is loaded by WordPress automatically on each request
85 characters long description:
Plugin helps you to insert conditional content on the WordPress pages/posts/sidebars.
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 plugin8,516 lines of code in 174 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 158 | 1,967 | 7,236 | 7,625 |
JavaScript | 2 | 17 | 20 | 355 |
Markdown | 6 | 133 | 0 | 250 |
JSON | 1 | 0 | 0 | 138 |
DTD | 1 | 25 | 54 | 69 |
XML | 3 | 13 | 19 | 58 |
YAML | 1 | 3 | 0 | 11 |
CSS | 1 | 2 | 10 | 9 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 6.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 12 | |
Traits | 0 | |
Classes | 138 | |
▷ Abstract classes | 6 | 4.35% |
▷ Concrete classes | 132 | 95.65% |
▷ Final classes | 0 | 0.00% |
Methods | 689 | |
▷ Static methods | 120 | 17.42% |
▷ Public methods | 558 | 80.99% |
▷ Protected methods | 36 | 5.22% |
▷ Private methods | 95 | 13.79% |
Functions | 28 | |
▷ Named functions | 20 | 71.43% |
▷ Anonymous functions | 8 | 28.57% |
Constants | 78 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 78 | 100.00% |
▷ Public constants | 78 | 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
No PNG files were detected