Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.18ms] Passed 4 tests
This is a short check of server-side resources used by TZ Guard
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.46 ▼6.24 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.67 ▼4.68 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.13 ▲2.43 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.10 ▼6.03 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.81 ▲0.22 |
TZ Guard /wp-admin/tools.php?page=tz-guard | 3.21 | 31.98 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
TZ Guard: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.59 ▼0.78 | 1.69 ▼0.26 | 40.21 ▼2.54 |
Dashboard /wp-admin | 2,213 ▲25 | 4.85 ▼1.03 | 103.47 ▼14.96 | 38.43 ▼6.81 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.01 | 36.53 ▼1.87 | 31.32 ▼4.88 |
Add New Post /wp-admin/post-new.php | 1,540 ▲26 | 23.29 ▲5.69 | 671.31 ▼22.45 | 56.91 ▼0.32 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.25 ▲0.03 | 94.81 ▼16.64 | 42.56 ▼1.36 |
TZ Guard /wp-admin/tools.php?page=tz-guard | 879 | 2.19 | 26.11 | 27.47 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tz-guard/tz-guard.php:18
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== tz-guard ===
) - Screenshots: Please add images for these screenshots: #1 (/trunk/screenshot-1.png), #2 (/trunk/screenshot-2.jpg), #3 (/trunk/screenshot-3.jpg), #4 (/trunk/screenshot-4.jpg)
tz-guard/tz-guard.php Passed 13 tests
The main PHP file in "TZ Guard" ver. 0.1.1 adds more information about the plugin and also serves as the entry point for this plugin
76 characters long description:
This is a simple plugin which will help you to security your WordPress site.
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 plugin646 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 73 | 260 | 627 |
PO File | 1 | 7 | 14 | 18 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 58.50 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 7.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.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 | 18 | |
▷ Static methods | 1 | 5.56% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 62.81KB | 16.93KB | ▼ 73.05% |