Benchmarks
Plugin footprint 82% 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.14MB] [CPU: ▼14.65ms] Passed 4 tests
A check of server-side resources used by Branding
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.08 ▲0.61 | 49.14 ▲8.65 |
Dashboard /wp-admin | 3.86 ▲0.55 | 54.54 ▲3.33 |
Posts /wp-admin/edit.php | 3.88 ▲0.53 | 52.09 ▲3.15 |
Add New Post /wp-admin/post-new.php | 3.90 ▼1.99 | 39.71 ▼58.38 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 30.54 ▼6.68 |
Server storage [IO: ▲55.01MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
It is recommended to fix the following issues
- Total filesystem usage should be limited to 25MB (currently using 55.01MB)
Filesystem: 230 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Branding
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,046 ▲275 | 13.81 ▼0.14 | 12.82 ▲10.96 | 43.04 ▲3.26 |
Dashboard /wp-admin | 2,235 ▲54 | 5.65 ▼0.02 | 83.67 ▼19.74 | 39.96 ▼3.36 |
Posts /wp-admin/edit.php | 2,137 ▲40 | 1.98 ▼0.05 | 36.52 ▼3.02 | 33.07 ▲1.22 |
Add New Post /wp-admin/post-new.php | 1,574 ▲48 | 18.23 ▼4.79 | 636.78 ▼74.59 | 68.43 ▲10.96 |
Media Library /wp-admin/upload.php | 1,440 ▲37 | 4.06 ▼0.16 | 95.66 ▼4.87 | 42.52 ▼4.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 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)
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 20× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/branding/LolitaFramework/CssLoader/views/lf_css_loader_3.php
- > /wp-content/plugins/branding/LolitaFramework/CssLoader/views/lf_css_loader_6.php
- > /wp-content/plugins/branding/app/views/blocks/wp_login_default_desc.php
- > /wp-content/plugins/branding/LolitaFramework/CssLoader/views/lf_css_loader_5.php
- > /wp-content/plugins/branding/LolitaFramework/CssLoader/views/lf_css_loader_1.php
- > /wp-content/plugins/branding/LolitaFramework/Configuration/views/meta_box_with_controls.php
- > /wp-content/plugins/branding/LolitaFramework/Configuration/views/meta_box_default.php
- > /wp-content/plugins/branding/LolitaFramework/CssLoader/views/lf_css_loader_2.php
- > /wp-content/plugins/branding/LolitaFramework/CssLoader/views/lf_css_loader_4.php
- > /wp-content/plugins/branding/LolitaFramework/CssLoader/views/lf_css_loader.php
- 143× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function getOptions() on null in wp-content/plugins/branding/LolitaFramework/Controls/Checkboxes/views/checkboxes.php:1
- > PHP Notice
Undefined variable: me in wp-content/plugins/branding/LolitaFramework/Controls/Select/views/select.php on line 1
- > PHP Notice
Undefined variable: color in wp-content/plugins/branding/LolitaFramework/CssLoader/views/lf_css_loader_10.php on line 38
- > PHP Notice
Undefined variable: bg in wp-content/plugins/branding/LolitaFramework/CssLoader/views/lf_css_loader_11.php on line 8
- > PHP Fatal error
Uncaught Error: Call to a member function getName() on null in wp-content/plugins/branding/LolitaFramework/Configuration/views/taxonomy_row.php:2
- > PHP Fatal error
Uncaught Error: Interface 'branding\\LolitaFramework\\Configuration\\IModule' not found in wp-content/plugins/branding/LolitaFramework/Configuration/Modules/Customs.php:8
- > PHP Notice
Undefined variable: bg in wp-content/plugins/branding/LolitaFramework/CssLoader/views/lf_css_loader_4.php on line 8
- > PHP Notice
Undefined variable: input_background_color in wp-content/plugins/branding/app/views/styles/styles.php on line 19
- > PHP Fatal error
Uncaught Error: Call to a member function getAttributesString() on null in wp-content/plugins/branding/LolitaFramework/Controls/Button/views/button.php:1
- > PHP Notice
Undefined variable: controls in wp-content/plugins/branding/LolitaFramework/Configuration/views/taxonomy_controls.php on line 1
- > 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 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
These attributes need your attention:
- Contributors: The plugin contributors field is not present
branding/branding.php 92% from 13 tests
Analyzing the main PHP file in "Branding" version 1.0
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 286 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected13,993 lines of code in 184 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 122 | 1,097 | 4,332 | 7,583 |
TypeScript | 13 | 468 | 2,892 | 1,570 |
Sass | 6 | 84 | 1 | 1,383 |
JavaScript | 11 | 152 | 999 | 1,209 |
JSON | 16 | 0 | 0 | 935 |
CSS | 9 | 2 | 9 | 689 |
SVG | 2 | 0 | 1 | 503 |
Markdown | 2 | 33 | 0 | 80 |
PO File | 2 | 6 | 8 | 34 |
XML | 1 | 1 | 1 | 7 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 9.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 22 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 73 | |
▷ Abstract classes | 3 | 4.11% |
▷ Concrete classes | 70 | 95.89% |
▷ Final classes | 0 | 0.00% |
Methods | 520 | |
▷ Static methods | 257 | 49.42% |
▷ Public methods | 465 | 89.42% |
▷ Protected methods | 12 | 2.31% |
▷ Private methods | 43 | 8.27% |
Functions | 6 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 6 | 100.00% |
Constants | 28 | |
▷ Global constants | 12 | 42.86% |
▷ Class constants | 16 | 57.14% |
▷ Public constants | 16 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.20MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
LolitaFramework/Controls/Repeater/assets/images/sprite.png | 17.94KB | 0.93KB | ▼ 94.83% |
promo/banner-772x250.png | 43.46KB | 15.46KB | ▼ 64.43% |
promo/icon-128x128.png | 6.36KB | 3.50KB | ▼ 44.88% |
promo/icon-256x256.png | 14.06KB | 6.50KB | ▼ 53.76% |
promo/icon-80x80.png | 3.72KB | 2.18KB | ▼ 41.43% |