Benchmarks
Plugin footprint 48% 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.86MB] [CPU: ▼32.68ms] Passed 4 tests
Server-side resources used by Team 118GROUP Agent
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 45.03 ▲4.92 |
Dashboard /wp-admin | 3.08 ▼0.22 | 24.58 ▼25.81 |
Posts /wp-admin/edit.php | 3.08 ▼0.27 | 27.52 ▼25.83 |
Add New Post /wp-admin/post-new.php | 3.08 ▼2.80 | 26.90 ▼70.02 |
Media Library /wp-admin/upload.php | 3.08 ▼0.15 | 28.13 ▼9.04 |
404 /wp-admin/admin.php?page=wtf_118_404 | 3.08 | 23.84 |
General /wp-admin/admin.php?page=wtf_118_general | 3.08 | 23.80 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_wtf_404_log |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Team 118GROUP Agent
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,405 ▲670 | 16.66 ▲1.91 | 17.73 ▲16.09 | 42.38 ▼0.48 |
Dashboard /wp-admin | 2,464 ▲276 | 6.46 ▲1.56 | 111.07 ▲3.37 | 83.14 ▲43.38 |
Posts /wp-admin/edit.php | 2,283 ▲197 | 3.35 ▲1.34 | 47.38 ▲10.03 | 84.97 ▲53.28 |
Add New Post /wp-admin/post-new.php | 1,699 ▲166 | 24.56 ▲1.33 | 602.26 ▼17.32 | 37.36 ▼27.43 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.17 ▼0.05 | 79.83 ▼21.61 | 90.60 ▲46.75 |
404 /wp-admin/admin.php?page=wtf_118_404 | 1,161 | 3.01 | 37.13 | 117.87 |
General /wp-admin/admin.php?page=wtf_118_general | 1,088 | 3.10 | 37.76 | 78.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/team-118group-agent/modules/settings.php+7
Undefined variable: locale_taro
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_wtf_404_log
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 12 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wtf_118_general
- > Notice in wp-content/plugins/team-118group-agent/modules/settings.php+9
Undefined variable: locale_taro
- > GET request to /wp-admin/admin.php?page=wtf_118_404
- > Notice in wp-content/plugins/team-118group-agent/modules/settings.php+51
Undefined index: url2redirect
- > GET request to /wp-admin/admin.php?page=wtf_118_404
- > Notice in wp-content/plugins/team-118group-agent/modules/settings.php+71
Undefined variable: msg
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wtf_118_404
- > Notice in wp-content/plugins/team-118group-agent/modules/settings.php+133
Undefined index: url_search
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 take a closer look at the following
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/team-118group-agent/modules/shortcodes.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/team-118group-agent/modules/scripts.php:65
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/team-118group-agent/modules/ajax.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_Action() in wp-content/plugins/team-118group-agent/modules/hooks.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_Action() in wp-content/plugins/team-118group-agent/modules/hooks.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/team-118group-agent/modules/settings.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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
Please fix the following attributes:
- Contributors: Contributors not specified
team-118group-agent/wp-tga-filter.php 92% from 13 tests
"Team 118GROUP Agent" version 1.6.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("team-118group-agent.php" instead of "wp-tga-filter.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin8,846 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 3 | 7 | 8,196 |
PHP | 6 | 209 | 28 | 538 |
JavaScript | 2 | 48 | 4 | 112 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 3.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 14 | 82.35% |
▷ Anonymous functions | 3 | 17.65% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
5 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
modules/images/icon_20x20.png | 15.82KB | 1.39KB | ▼ 91.22% |
modules/images/icon_16x16.png | 15.43KB | 0.99KB | ▼ 93.57% |
modules/inc/assets/css/glyphicons-halflings.png | 12.50KB | 10.35KB | ▼ 17.19% |
modules/inc/assets/css/glyphicons-halflings-white.png | 8.57KB | 9.20KB | 0.00% |
modules/images/icon_25x25.png | 16.36KB | 1.61KB | ▼ 90.13% |