Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.06ms] Passed 4 tests
An overview of server-side resources used by BrandCenter Connector plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 40.74 ▼8.07 |
Dashboard /wp-admin | 3.43 ▲0.13 | 56.08 ▲2.30 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 53.46 ▲0.47 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 97.02 ▼6.92 |
Media Library /wp-admin/upload.php | 3.35 ▲0.13 | 42.88 ▲6.24 |
Library /wp-admin/admin.php?page=brand_library | 3.33 | 33.87 |
Settings /wp-admin/admin.php?page=brand_settings | 3.33 | 33.67 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 47 new files
Database: no new tables, 11 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
brandcenter_error_auth |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
brandcenter_url |
can_compress_scripts |
authData |
brandcenter_user |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BrandCenter Connector plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.28 ▲0.12 | 2.10 ▲0.43 | 44.27 ▲1.59 |
Dashboard /wp-admin | 2,218 ▲38 | 5.52 ▼0.15 | 89.26 ▼9.32 | 73.71 ▲29.49 |
Posts /wp-admin/edit.php | 2,129 ▲32 | 2.03 ▲0.07 | 37.42 ▲0.73 | 34.54 ▼3.71 |
Add New Post /wp-admin/post-new.php | 1,702 ▲174 | 22.30 ▼0.74 | 702.63 ▲8.79 | 51.08 ▼9.92 |
Media Library /wp-admin/upload.php | 1,423 ▲20 | 4.22 ▲0.08 | 104.33 ▼4.54 | 79.85 ▲33.44 |
Library /wp-admin/admin.php?page=brand_library | 1,064 | 2.13 | 27.91 | 58.96 |
Settings /wp-admin/admin.php?page=brand_settings | 891 | 1.99 | 25.09 | 31.30 |
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 did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=brand_settings
- > Notice in wp-content/plugins/brand-center-connector/includes/brandcenter-settings.php+59
Undefined variable: mark
- > GET request to /wp-admin/admin.php?page=brand_settings
- > Notice in wp-content/plugins/brand-center-connector/includes/brandcenter-settings.php+80
Undefined variable: error_code
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
Everything seems fine, however this is by no means an exhaustive test
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=brand_settings
- > Javascript (severe) in unknown
/wp-content/plugins/brand-center-connector/js/custom-scripts.js?ver=6.3.1 2:0 Uncaught TypeError: $ is not a function
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: assets, brandcenter assets
brand-center-connector/wp-brand-center-connector.php 92% from 13 tests
The main file in "BrandCenter Connector plugin" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("brand-center-connector.php" instead of "wp-brand-center-connector.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,709 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 92 | 118 | 805 |
CSS | 2 | 39 | 23 | 460 |
JavaScript | 2 | 57 | 37 | 444 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 65.00 |
▷ Minimum class complexity | 65.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 1 | 2.94% |
▷ Public methods | 34 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
35 compressed PNG files occupy 0.12MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icons/indd.png | 3.42KB | 3.45KB | 0.00% |
images/icons/docx.png | 4.01KB | 4.06KB | 0.00% |
images/icons/raw.png | 3.26KB | 1.23KB | ▼ 62.18% |
images/icons/mov.png | 3.75KB | 3.78KB | 0.00% |
images/icons/flv.png | 3.39KB | 3.42KB | 0.00% |