Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.77ms] Passed 4 tests
Server-side resources used by Conditionally display featured image on singular posts and pages
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 38.02 ▼3.68 |
Dashboard /wp-admin | 3.35 ▲0.04 | 45.14 ▼8.07 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 45.34 ▼5.22 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 93.51 ▲1.88 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.77 ▲7.00 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Conditionally display featured image on singular posts and pages
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.21 ▼1.16 | 1.90 ▲0.07 | 40.89 ▼4.41 |
Dashboard /wp-admin | 2,206 ▲18 | 5.78 ▲0.92 | 95.08 ▼6.81 | 38.40 ▲0.05 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.14 ▲0.09 | 41.51 ▲1.40 | 34.01 ▼2.82 |
Add New Post /wp-admin/post-new.php | 1,527 ▼15 | 22.81 ▼0.07 | 626.81 ▼41.39 | 58.23 ▲3.82 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.17 ▼0.03 | 93.94 ▼6.18 | 41.29 ▲0.88 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: A description for screenshot #3 is missing in conditionally-display-featured-image-on-singular-pages/assets to your readme.txt
- Tags: You are using too many tags: 11 tag instead of maximum 10
conditionally-display-featured-image-on-singular-pages/conditional-featured-image.php 92% from 13 tests
"Conditionally display featured image on singular posts and pages" version 3.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("conditionally-display-featured-image-on-singular-pages.php" instead of "conditional-featured-image.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected18,693 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 18,262 |
PHP | 5 | 109 | 429 | 344 |
JavaScript | 2 | 7 | 0 | 87 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 18.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 32 | |
▷ Static methods | 4 | 12.50% |
▷ Public methods | 20 | 62.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 37.50% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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