Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.17ms] Passed 4 tests
A check of server-side resources used by Terrific Integration
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.29 ▼7.29 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.36 ▲0.04 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.85 ▲2.47 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 85.61 ▼13.17 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.49 ▼4.27 |
Server storage [IO: ▲0.89MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 180 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Terrific Integration
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲82 | 13.75 ▼0.61 | 1.71 ▼0.47 | 41.53 ▲1.46 |
Dashboard /wp-admin | 2,220 ▲32 | 5.84 ▼0.02 | 113.12 ▼1.79 | 84.95 ▲44.49 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 1.99 ▼0.01 | 38.49 ▼4.16 | 36.57 ▼0.39 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 23.22 ▼0.21 | 692.31 ▲44.94 | 58.51 ▲6.60 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.18 ▼0.08 | 98.59 ▼19.34 | 84.37 ▲35.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 9× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/terrific-integration/templates/skin_js.php
- > /wp-content/plugins/terrific-integration/templates/skin_less.php
- > /wp-content/plugins/terrific-integration/templates/skin_scss.php
- > /wp-content/plugins/terrific-integration/templates/skin_css.php
- > /wp-content/plugins/terrific-integration/terrific-theme/modules/Comments/comments.php
- > /wp-content/plugins/terrific-integration/templates/css.php
- > /wp-content/plugins/terrific-integration/templates/js.php
- > /wp-content/plugins/terrific-integration/templates/scss.php
- > /wp-content/plugins/terrific-integration/templates/less.php
- 79× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'SassNode' not found in wp-content/plugins/terrific-integration/library/phpsass/tree/SassRuleNode.php:18
- > PHP Notice
Undefined variable: module in wp-content/plugins/terrific-integration/templates/skin_js.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'SassNode' not found in wp-content/plugins/terrific-integration/library/phpsass/tree/SassImportNode.php:18
- > PHP Notice
Undefined variable: current_user in wp-content/plugins/terrific-integration/templates/skin_js.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'SassNode' not found in wp-content/plugins/terrific-integration/library/phpsass/tree/SassPropertyNode.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function module() in wp-content/plugins/terrific-integration/terrific-theme/comments.php:2
- > PHP Fatal error
Uncaught Error: Class 'SassNode' not found in wp-content/plugins/terrific-integration/library/phpsass/tree/SassRootNode.php:21
- > PHP Fatal error
Allowed memory size of 134217728 bytes exhausted (tried to allocate 4096 bytes) in wp-content/plugins/terrific-integration/library/phpsass/script/SassScriptLexer.php on line 113
- > PHP Notice
Undefined variable: skin in wp-content/plugins/terrific-integration/templates/skin_scss.php on line 1
- > PHP Notice
Undefined variable: current_user in wp-content/plugins/terrific-integration/templates/js.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: frontend, micro, modules, integration, terrific...
terrific-integration/terrific.php 85% from 13 tests
The main PHP script in "Terrific Integration" version 1.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("terrific-integration.php" instead of "terrific.php")
- Description: Keep the plugin description shorter than 140 characters (currently 188 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
No dangerous file extensions were detected11,118 lines of code in 162 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 73 | 1,534 | 4,224 | 8,323 |
Sass | 71 | 373 | 1,108 | 2,346 |
CSS | 5 | 17 | 11 | 200 |
LESS | 5 | 28 | 0 | 117 |
JavaScript | 4 | 24 | 54 | 90 |
JSON | 2 | 0 | 0 | 24 |
YAML | 1 | 0 | 1 | 11 |
Markdown | 1 | 3 | 0 | 7 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 14.61 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 316.00 |
Average method complexity | 3.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 151 | |
▷ Abstract classes | 11 | 7.28% |
▷ Concrete classes | 140 | 92.72% |
▷ Final classes | 0 | 0.00% |
Methods | 774 | |
▷ Static methods | 167 | 21.58% |
▷ Public methods | 602 | 77.78% |
▷ Protected methods | 153 | 19.77% |
▷ Private methods | 19 | 2.45% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 139 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 139 | 100.00% |
▷ Public constants | 139 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.17MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon.png | 3.23KB | 0.69KB | ▼ 78.59% |
assets/screenshot-3.png | 60.02KB | 25.85KB | ▼ 56.93% |
assets/screenshot-1.png | 43.79KB | 16.95KB | ▼ 61.29% |
assets/screenshot-2.png | 59.18KB | 21.06KB | ▼ 64.41% |
plugin-icon.png | 3.79KB | 1.48KB | ▼ 61.07% |