Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼1.54ms] Passed 4 tests
An overview of server-side resources used by Gravitation Brands
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 36.29 ▼4.24 |
Dashboard /wp-admin | 3.35 ▲0.04 | 44.53 ▼2.37 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 46.28 ▼0.06 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 91.94 ▲0.50 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.37 ▲0.84 |
Add New /wp-admin/post-new.php?post_type=gv_brands | 3.32 | 43.90 |
All brands /wp-admin/edit.php?post_type=gv_brands | 3.31 | 36.25 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Gravitation Brands
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲109 | 13.29 ▼1.11 | 4.76 ▲2.80 | 40.74 ▼9.87 |
Dashboard /wp-admin | 2,237 ▲46 | 5.81 ▼0.09 | 96.59 ▼1.75 | 41.85 ▲1.22 |
Posts /wp-admin/edit.php | 2,123 ▲37 | 2.00 ▼0.05 | 39.42 ▲3.96 | 34.18 ▲0.62 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 17.85 ▼5.35 | 614.09 ▲10.73 | 49.79 ▼5.03 |
Media Library /wp-admin/upload.php | 1,422 ▲31 | 4.23 ▲0.00 | 92.47 ▼3.55 | 40.01 ▼3.27 |
Add New /wp-admin/post-new.php?post_type=gv_brands | 1,668 | 3.63 | 70.14 | 34.12 |
Help /wp-admin/gravitation-brands.php | 26 | 0.44 | 0.14 | 13.61 |
All brands /wp-admin/edit.php?post_type=gv_brands | 1,100 | 1.95 | 29.47 | 29.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/gravitation-brands/gravitation-brands.php
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
- > GET request to /wp-admin/gravitation-brands.php
- > Network (severe)
wp-admin/gravitation-brands.php - Failed to load resource: the server responded with a status of 404 (Not Found)
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
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png)
gravitation-brands/gravitation-brands.php 92% from 13 tests
The main file in "Gravitation Brands" v. 1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
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
There were no executable files found in this plugin2,584 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 454 | 857 | 1,789 |
PO File | 4 | 120 | 120 | 346 |
PHP | 2 | 83 | 72 | 258 |
CSS | 3 | 8 | 22 | 191 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.28MB with 0.22MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/brand.png | 7.55KB | 1.32KB | ▼ 82.55% |
images/no-image.png | 7.55KB | 1.32KB | ▼ 82.55% |
screenshot-1.png | 144.98KB | 40.32KB | ▼ 72.19% |
screenshot-2.png | 131.58KB | 36.02KB | ▼ 72.62% |