Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼1.19ms] Passed 4 tests
A check of server-side resources used by TPG Redirect
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.25 ▼3.59 |
Dashboard /wp-admin | 3.41 ▲0.11 | 49.62 ▼1.12 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 49.70 ▲0.50 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 95.91 ▼0.40 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 33.93 ▲0.34 |
TPG Redirect /wp-admin/options-general.php?page=tpg-redirect-settings | 3.32 | 30.77 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for TPG Redirect
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.79 ▼0.58 | 1.76 ▲0.14 | 38.42 ▼5.71 |
Dashboard /wp-admin | 2,210 ▲25 | 4.85 ▼1.03 | 109.01 ▲5.68 | 43.37 ▲2.21 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.09 ▲0.03 | 39.24 ▲1.97 | 35.54 ▲3.53 |
Add New Post /wp-admin/post-new.php | 1,517 ▼2 | 17.67 ▼5.68 | 596.99 ▼78.18 | 50.39 ▼11.45 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.22 ▲0.04 | 95.32 ▼3.68 | 42.39 ▼5.05 |
TPG Redirect /wp-admin/options-general.php?page=tpg-redirect-settings | 959 | 1.87 | 32.98 | 29.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/tpg-redirect/inc/doc-text.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/tpg-redirect/tpg-redirect.php:35
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-admin/includes/class-wp-upgrader.php' (include_path='.:/usr/share/php') in wp-content/plugins/tpg-redirect/inc/class-tpg-upgrader.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/tpg-redirect/templates/template-default.php:12
- > PHP Warning
require_once(ABSPATH/wp-admin/includes/class-wp-upgrader.php): failed to open stream: No such file or directory in wp-content/plugins/tpg-redirect/inc/class-tpg-upgrader.php on line 6
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/tpg-redirect/inc/class-tpg-upgrader.php on line 6
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: Please add an image for screenshot #1 (Admin page)
tpg-redirect/tpg-redirect.php Passed 13 tests
Analyzing the main PHP file in "TPG Redirect" version 1.0.8
52 characters long description:
Redirects to specified page when user not logged in.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin828 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 179 | 669 | 720 |
CSS | 1 | 21 | 19 | 104 |
JavaScript | 1 | 3 | 6 | 4 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 7.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 6 | 12.00% |
▷ Public methods | 50 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/tabs.png | 2.79KB | 2.25KB | ▼ 19.37% |