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.40MB] [CPU: ▼11.27ms] Passed 4 tests
An overview of server-side resources used by THRON
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.23 ▲0.77 | 34.90 ▼13.30 |
Dashboard /wp-admin | 4.57 ▲1.26 | 60.41 ▲5.85 |
Posts /wp-admin/edit.php | 4.59 ▲1.24 | 66.36 ▲18.87 |
Add New Post /wp-admin/post-new.php | 4.30 ▼1.59 | 46.65 ▼47.19 |
Media Library /wp-admin/upload.php | 4.41 ▲1.18 | 50.26 ▲9.58 |
Server storage [IO: ▲3.59MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 405 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
thron_last_sync |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for THRON
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,078 ▲317 | 16.16 ▲1.81 | 5.85 ▲4.01 | 38.04 ▼6.48 |
Dashboard /wp-admin | 2,364 ▲187 | 6.96 ▲1.37 | 126.65 ▲36.23 | 95.60 ▲50.47 |
Posts /wp-admin/edit.php | 2,320 ▲223 | 3.79 ▲1.83 | 65.59 ▲29.23 | 80.51 ▲43.71 |
Add New Post /wp-admin/post-new.php | 1,580 ▲54 | 23.59 ▲0.41 | 714.64 ▲43.08 | 38.85 ▼9.92 |
Media Library /wp-admin/upload.php | 1,449 ▲52 | 4.84 ▲0.62 | 95.24 ▼6.14 | 92.47 ▲45.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 14 options in the database
- thron_token_id_time
- thron_tracking_context
- thron_pkey
- thron_last_sync
- widget_recent-comments
- db_upgraded
- thron_option_api_page
- thron_token_id
- widget_recent-posts
- thron_playerTemplates
- ...
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 0% 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
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/thron/public/partials/player.php
- 58× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/thron/includes/cmb2/includes/types/CMB2_Type_Textarea.php:13
- > PHP Notice
Undefined variable: scalemode in wp-content/plugins/thron/public/partials/player.php on line 45
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/thron/includes/cmb2/includes/types/CMB2_Type_Select_Timezone.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/thron/includes/cmb2/includes/types/CMB2_Type_Taxonomy_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/thron/includes/cmb2/includes/types/CMB2_Type_Text_Date.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/thron/includes/cmb2/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/thron/includes/cmb2/includes/types/CMB2_Type_Title.php:13
- > PHP Notice
Undefined variable: uniqID in wp-content/plugins/thron/public/partials/player.php on line 8
- > PHP Notice
Undefined variable: contentID in wp-content/plugins/thron/public/partials/player.php on line 39
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/thron/includes/cmb2/includes/types/CMB2_Type_Text.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: dam
thron/thron.php Passed 13 tests
The entry point to "THRON" version 1.3.1 is a PHP file that has certain tags in its header comment area
75 characters long description:
Select the assets to insert within your pages directly from the DAM library
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected58,354 lines of code in 251 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 121 | 14,359 | 18,549 | 32,438 |
PHP | 73 | 3,019 | 7,248 | 10,177 |
CSS | 16 | 385 | 1,289 | 5,180 |
JSON | 3 | 0 | 0 | 4,375 |
JavaScript | 16 | 761 | 787 | 4,018 |
Sass | 17 | 305 | 29 | 1,407 |
Markdown | 3 | 239 | 0 | 735 |
SVG | 2 | 1 | 2 | 24 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 20.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 3.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 80 | |
▷ Abstract classes | 9 | 11.25% |
▷ Concrete classes | 71 | 88.75% |
▷ Final classes | 0 | 0.00% |
Methods | 620 | |
▷ Static methods | 91 | 14.68% |
▷ Public methods | 515 | 83.06% |
▷ Protected methods | 89 | 14.35% |
▷ Private methods | 16 | 2.58% |
Functions | 44 | |
▷ Named functions | 40 | 90.91% |
▷ Anonymous functions | 4 | 9.09% |
Constants | 13 | |
▷ Global constants | 6 | 46.15% |
▷ Class constants | 7 | 53.85% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
16 PNG files occupy 0.15MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/thumbnails-icons.png | 130.43KB | 27.73KB | ▼ 78.74% |
includes/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
includes/cmb2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
includes/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
includes/cmb2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |