Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.54MB] [CPU: ▲1.85ms] Passed 4 tests
Server-side resources used by Gyta BuyBack
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.59 | 45.98 ▲2.49 |
Dashboard /wp-admin | 3.91 ▲0.60 | 53.78 ▲4.56 |
Posts /wp-admin/edit.php | 3.96 ▲0.60 | 57.07 ▲4.95 |
Add New Post /wp-admin/post-new.php | 6.42 ▲0.54 | 92.58 ▼4.59 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 43.60 ▲9.01 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 4.03 | 42.12 |
Server storage [IO: ▲5.31MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 196 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
fs_accounts |
can_compress_scripts |
widget_recent-posts |
fs_debug_mode |
fs_active_plugins |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Gyta BuyBack
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲88 | 13.25 ▼1.38 | 1.67 ▼0.27 | 30.68 ▼13.66 |
Dashboard /wp-admin | 2,240 ▲49 | 4.85 ▼0.99 | 106.19 ▲2.36 | 41.10 ▼0.41 |
Posts /wp-admin/edit.php | 2,126 ▲34 | 2.01 ▼0.02 | 41.07 ▲2.43 | 38.19 ▼0.58 |
Add New Post /wp-admin/post-new.php | 1,532 ▼10 | 23.15 ▲2.35 | 667.28 ▲18.14 | 61.27 ▲11.12 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.09 ▼0.11 | 96.53 ▼13.43 | 43.88 ▼1.30 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,094 | 1.71 | 25.97 | 29.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/gyta-buyback/freemius/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 9 options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- fs_debug_mode
- fs_accounts
- fs_active_plugins
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/gyta-buyback/admin/dashboard.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Contributors: Plugin contributors field is missing
gyta-buyback/gyta-buyback.php 85% from 13 tests
Analyzing the main PHP file in "Gyta BuyBack" version 1.3.0
It is important to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "4.8")
- Description: Keep the plugin description shorter than 140 characters (currently 170 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin34,744 lines of code in 146 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 129 | 8,188 | 17,617 | 34,521 |
JavaScript | 3 | 34 | 59 | 194 |
XML | 1 | 3 | 0 | 16 |
CSS | 13 | 0 | 0 | 13 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 84.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 2 | 3.70% |
▷ Concrete classes | 52 | 96.30% |
▷ Final classes | 0 | 0.00% |
Methods | 1,281 | |
▷ Static methods | 205 | 16.00% |
▷ Public methods | 891 | 69.56% |
▷ Protected methods | 17 | 1.33% |
▷ Private methods | 373 | 29.12% |
Functions | 126 | |
▷ Named functions | 126 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 145 | |
▷ Global constants | 98 | 67.59% |
▷ Class constants | 47 | 32.41% |
▷ Public constants | 47 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 2.19MB with 1.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 714.51KB | 297.21KB | ▼ 58.40% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
screenshot-2.png | 731.19KB | 322.29KB | ▼ 55.92% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
images/Gyta-Buyback-Logo-2.png | 8.64KB | 4.42KB | ▼ 48.80% |