Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼4.33ms] Passed 4 tests
An overview of server-side resources used by Sitewide Coloring
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.42 | 50.25 ▲10.28 |
Dashboard /wp-admin | 3.38 ▲0.03 | 47.05 ▼12.14 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 44.01 ▼1.19 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 98.00 ▼2.38 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 32.87 ▼1.61 |
Server storage [IO: ▲1.32MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Sitewide Coloring
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲59 | 13.29 ▼1.33 | 1.92 ▼0.09 | 49.88 ▲6.91 |
Dashboard /wp-admin | 2,231 ▲40 | 5.86 ▲0.95 | 105.59 ▼5.45 | 54.36 ▲15.01 |
Posts /wp-admin/edit.php | 2,117 ▲31 | 2.08 ▲0.03 | 35.77 ▲0.83 | 46.10 ▲12.07 |
Add New Post /wp-admin/post-new.php | 1,539 ▲6 | 23.22 ▼0.13 | 782.89 ▲71.64 | 62.21 ▲0.25 |
Media Library /wp-admin/upload.php | 1,419 ▲28 | 4.26 ▲0.03 | 99.13 ▼2.65 | 56.03 ▲12.25 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/sitewide-coloring/lib/MobileDetect/export/exportToJSON.php
- 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'SiteWideColoring\\App\\Service\\AbstractService' not found in wp-content/plugins/sitewide-coloring/services/Settings.php:7
- > PHP Fatal error
Uncaught Error: Interface 'SiteWideColoring\\App\\Registry\\RegistryAwareInterface' not found in wp-content/plugins/sitewide-coloring/app/View/Layout.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/sitewide-coloring/etc/config.php:5
- > PHP Fatal error
Uncaught Error: Class 'SiteWideColoring\\App\\Hook\\AbstractHook' not found in wp-content/plugins/sitewide-coloring/hooks/SiteWiding.php:7
- > PHP Fatal error
Uncaught Error: Class 'SiteWideColoring\\App\\Service\\AbstractService' not found in wp-content/plugins/sitewide-coloring/services/SiteWiding.php:8
- > PHP Fatal error
Uncaught Error: Interface 'SiteWideColoring\\App\\Registry\\RegistryAwareInterface' not found in wp-content/plugins/sitewide-coloring/app/Hook/AbstractHook.php:8
- > PHP Fatal error
Uncaught Error: Interface 'SiteWideColoring\\App\\Registry\\RegistryAwareInterface' not found in wp-content/plugins/sitewide-coloring/app/Hook/Manager.php:9
- > PHP Fatal error
Uncaught Error: Interface 'SiteWideColoring\\App\\Registry\\RegistryInterface' not found in wp-content/plugins/sitewide-coloring/app/Registry.php:8
- > PHP Fatal error
Uncaught Error: Interface 'SiteWideColoring\\App\\Registry\\RegistryAwareInterface' not found in wp-content/plugins/sitewide-coloring/app/Service/AbstractService.php:8
- > PHP Fatal error
Uncaught Error: Interface 'SiteWideColoring\\App\\Registry\\RegistryAwareInterface' not found in wp-content/plugins/sitewide-coloring/app/View/Renderer.php:8
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Title Options Screen), #2 (Display Settings Options Screen), #3 (Example Options Screen)
sitewide-coloring/sitewide-coloring.php Passed 13 tests
The main file in "Sitewide Coloring" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
50 characters long description:
Color your website with banners just in one click.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected2,482 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 339 | 647 | 1,687 |
CSS | 1 | 99 | 4 | 608 |
JavaScript | 3 | 31 | 23 | 187 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 12.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 122.00 |
Average method complexity | 3.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 2 | |
Traits | 1 | |
Classes | 17 | |
▷ Abstract classes | 2 | 11.76% |
▷ Concrete classes | 15 | 88.24% |
▷ Final classes | 3 | 20.00% |
Methods | 92 | |
▷ Static methods | 16 | 17.39% |
▷ Public methods | 73 | 79.35% |
▷ Protected methods | 19 | 20.65% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 9 | 100.00% |
Constants | 10 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 10 | 100.00% |
▷ Public constants | 10 | 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
5 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 11.58KB | 5.54KB | ▼ 52.12% |
screenshot-3.png | 77.87KB | 36.00KB | ▼ 53.77% |
assets/images/sitewide_delete_block_bg.png | 1.09KB | 0.24KB | ▼ 78.48% |
screenshot-1.png | 17.92KB | 8.86KB | ▼ 50.56% |
assets/images/sitewide_select_arrow.png | 1.04KB | 0.27KB | ▼ 74.51% |