Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.98ms] Passed 4 tests
Server-side resources used by Topcontent
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 42.37 ▲1.29 |
Dashboard /wp-admin | 3.43 ▲0.13 | 46.16 ▼3.59 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 46.39 ▼0.56 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 83.36 ▼11.17 |
Media Library /wp-admin/upload.php | 3.36 ▲0.12 | 33.77 ▼0.61 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please fix the following
- There were 1 file (0.00KB) illegally modified outside of "wp-content/plugins/topcontent/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/topcontent/assets/libs/\321\201lass.custom.html.handler.php"
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Topcontent: 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,806 ▲44 | 14.22 ▼0.12 | 1.80 ▲0.05 | 41.58 ▼2.01 |
Dashboard /wp-admin | 2,208 ▲31 | 5.59 ▼0.06 | 91.87 ▼10.60 | 39.44 ▼7.59 |
Posts /wp-admin/edit.php | 2,119 ▲16 | 2.04 ▲0.04 | 37.54 ▼6.74 | 34.46 ▼2.95 |
Add New Post /wp-admin/post-new.php | 1,540 ▲11 | 22.77 ▼0.71 | 665.20 ▲8.77 | 58.86 ▲8.26 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.22 ▼0.04 | 96.35 ▼0.02 | 41.07 ▼2.00 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/topcontent/assets/libs/class.topcontent.php
- > /wp-content/plugins/topcontent/topcontent.php
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 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
topcontent/topcontent.php 92% from 13 tests
The principal PHP file in "Topcontent" v. 1.2.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 210 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected923 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 155 | 65 | 704 |
CSS | 2 | 25 | 8 | 150 |
JavaScript | 1 | 18 | 8 | 69 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 17.67 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 3.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 7 | 46.67% |
▷ Public methods | 10 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 33.33% |
Functions | 16 | |
▷ Named functions | 10 | 62.50% |
▷ Anonymous functions | 6 | 37.50% |
Constants | 9 | |
▷ Global constants | 1 | 11.11% |
▷ Class constants | 8 | 88.89% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/topcont_logo.png | 5.39KB | 3.60KB | ▼ 33.32% |