Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.37MB] [CPU: ▲1.83ms] Passed 4 tests
Server-side resources used by GoCache
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.42 | 44.60 ▲7.17 |
Dashboard /wp-admin | 3.70 ▲0.40 | 51.34 ▲2.99 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 46.93 ▼1.00 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.36 | 82.76 ▼0.47 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 40.23 ▲5.80 |
Start /wp-admin/admin.php?page=gocache-manager-settings | 3.53 | 37.03 |
Authentication /wp-admin/admin.php?page=gocache-managerauthenticate-settings | 3.51 | 34.22 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 81 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
gocache_option-status |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by GoCache
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲70 | 13.26 ▼1.10 | 4.19 ▲2.62 | 42.76 ▼1.46 |
Dashboard /wp-admin | 2,234 ▲53 | 5.75 ▲0.03 | 96.92 ▲1.18 | 88.25 ▲44.27 |
Posts /wp-admin/edit.php | 2,152 ▲52 | 2.33 ▲0.30 | 40.95 ▲4.09 | 32.41 ▼3.21 |
Add New Post /wp-admin/post-new.php | 1,717 ▲180 | 22.54 ▲4.35 | 710.41 ▲94.44 | 59.56 ▼17.07 |
Media Library /wp-admin/upload.php | 1,439 ▲39 | 4.44 ▲0.22 | 99.52 ▲3.82 | 77.55 ▲33.69 |
Start /wp-admin/admin.php?page=gocache-manager-settings | 846 | 1.90 | 32.28 | 26.75 |
Authentication /wp-admin/admin.php?page=gocache-managerauthenticate-settings | 911 | 2.04 | 25.96 | 31.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- gocache_option-status
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=gocache-managerauthenticate-settings
- > Notice in wp-content/plugins/gocache-cdn/Controller/authentication.php+22
Trying to access array offset on value of type null
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gocache-managerauthenticate-settings
- > Notice in wp-content/plugins/gocache-cdn/Controller/authentication.php+32
Trying to get property 'status_code' of non-object
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: Add an image for screenshot #1 (Tela de autenticação do plugin)
gocache-cdn/gocache-manager.php 77% from 13 tests
The primary PHP file in "GoCache" version 1.3.5 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gocache-cdn.php" instead of "gocache-manager.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: Please don't use more than 140 characters for the plugin description (currently 178 characters long)
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
There were no executable files found in this plugin3,440 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 468 | 132 | 1,678 |
JavaScript | 23 | 308 | 59 | 1,089 |
SVG | 2 | 0 | 0 | 360 |
PO File | 1 | 86 | 93 | 201 |
Sass | 2 | 8 | 0 | 49 |
CSS | 1 | 5 | 9 | 38 |
JSON | 1 | 0 | 0 | 25 |
PHP code Passed 2 tests
This is a short overview 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.29 |
Average class complexity | 14.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 1 | 8.33% |
▷ Concrete classes | 11 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 104 | |
▷ Static methods | 39 | 37.50% |
▷ Public methods | 80 | 76.92% |
▷ Protected methods | 1 | 0.96% |
▷ Private methods | 23 | 22.12% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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
15 PNG files occupy 0.39MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
assets/screenshot-2.png | 49.86KB | 16.60KB | ▼ 66.70% |
screenshot-2.png | 49.86KB | 16.60KB | ▼ 66.70% |
screenshot-3.png | 77.06KB | 32.09KB | ▼ 58.35% |
assets/icon-256x256.png | 13.26KB | 5.80KB | ▼ 56.28% |