Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼7.83ms] Passed 4 tests
Analyzing server-side resources used by Wincher Rank Tracker
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 37.80 ▼6.69 |
Dashboard /wp-admin | 3.41 ▲0.07 | 48.03 ▼13.04 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 43.29 ▲4.55 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 84.16 ▼16.14 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 42.34 ▲11.84 |
Server storage [IO: ▲7.70MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 223 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Wincher Rank Tracker: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲105 | 14.26 ▼0.15 | 1.67 ▼0.04 | 38.12 ▼4.61 |
Dashboard /wp-admin | 2,248 ▲74 | 5.57 ▼0.01 | 85.74 ▼14.15 | 39.87 ▼7.78 |
Posts /wp-admin/edit.php | 2,162 ▲62 | 2.04 ▲0.08 | 35.30 ▼3.50 | 34.37 ▲3.78 |
Add New Post /wp-admin/post-new.php | 1,543 ▲15 | 23.13 ▼0.18 | 690.20 ▲61.74 | 56.32 ▲6.96 |
Media Library /wp-admin/upload.php | 1,462 ▲62 | 4.19 ▲0.01 | 97.47 ▼1.46 | 40.24 ▼1.66 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 63× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/wincher-rank-tracker/vendor/psr/http-message/src/ServerRequestInterface.php:43
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/wincher-rank-tracker/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/wincher-rank-tracker/vendor/psr/http-message/src/RequestInterface.php:24
- > PHP Fatal error
Trait 'League\\OAuth2\\Client\\Tool\\RequiredParameterTrait' not found in wp-content/plugins/wincher-rank-tracker/vendor/league/oauth2-client/src/Grant/AbstractGrant.php on line 31
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/wincher-rank-tracker/vendor/guzzlehttp/promises/src/TaskQueue.php:14
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/wincher-rank-tracker/vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wincher-rank-tracker/vendor/guzzlehttp/psr7/src/Stream.php:12
- > PHP Fatal error
require_once(): Failed opening required 'lib/byte_safe_strings.php' (include_path='.:/usr/share/php') in wp-content/plugins/wincher-rank-tracker/vendor/paragonie/random_compat/psalm-autoload.php on line 3
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wincher-rank-tracker/vendor/guzzlehttp/psr7/src/BufferStream.php:17
- > PHP Fatal error
Uncaught Error: Interface 'League\\OAuth2\\Client\\Token\\AccessTokenInterface' not found in wp-content/plugins/wincher-rank-tracker/vendor/league/oauth2-client/src/Token/AccessToken.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
- Screenshots: Please describe screenshot #3 in wincher-rank-tracker/assets to your readme.txt
wincher-rank-tracker/wincher.php 92% from 13 tests
The main PHP script in "Wincher Rank Tracker" version 3.0.4 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wincher-rank-tracker.php" instead of "wincher.php")
Code Analysis 97% from 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
No dangerous file extensions were detected123,531 lines of code in 208 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 20,777 | 18,645 | 88,442 |
PHP | 168 | 2,741 | 7,993 | 28,966 |
Markdown | 14 | 1,178 | 0 | 3,481 |
JSON | 12 | 1 | 0 | 1,519 |
CSS | 4 | 27 | 3 | 1,017 |
SVG | 3 | 0 | 1 | 65 |
XML | 1 | 0 | 0 | 19 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 14.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 19 | |
Traits | 9 | |
Classes | 106 | |
▷ Abstract classes | 3 | 2.83% |
▷ Concrete classes | 103 | 97.17% |
▷ Final classes | 24 | 23.30% |
Methods | 925 | |
▷ Static methods | 163 | 17.62% |
▷ Public methods | 715 | 77.30% |
▷ Protected methods | 65 | 7.03% |
▷ Private methods | 145 | 15.68% |
Functions | 163 | |
▷ Named functions | 74 | 45.40% |
▷ Anonymous functions | 89 | 54.60% |
Constants | 204 | |
▷ Global constants | 78 | 38.24% |
▷ Class constants | 126 | 61.76% |
▷ Public constants | 126 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/flags.png | 78.70KB | 26.55KB | ▼ 66.27% |