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.02MB] [CPU: ▼5.73ms] Passed 4 tests
This is a short check of server-side resources used by Thunder Port
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.47 ▼8.98 |
Dashboard /wp-admin | 3.33 ▲0.02 | 47.50 ▲1.59 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 46.30 ▲0.20 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 90.46 ▼14.27 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.85 ▲0.13 |
thunder_port /wp-admin/admin.php?page=thunder_port_detail | 3.21 | 28.57 |
Server storage [IO: ▲1.64MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Thunder Port
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲105 | 13.41 ▼1.34 | 4.30 ▲2.38 | 40.07 ▼11.37 |
Dashboard /wp-admin | 2,224 ▲39 | 4.93 ▼0.98 | 99.99 ▼10.04 | 78.73 ▲34.21 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.14 ▲0.14 | 35.47 ▼6.32 | 32.01 ▼5.18 |
Add New Post /wp-admin/post-new.php | 1,535 ▲21 | 23.22 ▲5.29 | 763.90 ▲159.99 | 56.60 ▼0.64 |
Media Library /wp-admin/upload.php | 1,403 ▲18 | 4.12 ▼0.08 | 96.53 ▼3.83 | 45.12 ▲0.87 |
thunder_port /wp-admin/admin.php?page=thunder_port_detail | 776 | 2.01 | 23.76 | 20.60 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 75% 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 50% 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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/thunder-port/thunder_port.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% 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
3 plugin tags: plugin support, quick search, wordpress plugin support
thunder-port/thunder_port.php 92% from 13 tests
"Thunder Port" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("thunder-port.php" instead of "thunder_port.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin9,306 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 86 | 35 | 3,078 |
PHP | 2 | 586 | 422 | 2,414 |
Sass | 13 | 28 | 24 | 1,520 |
LESS | 13 | 28 | 34 | 1,510 |
SVG | 1 | 0 | 0 | 640 |
JavaScript | 3 | 17 | 6 | 143 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 164.50 |
▷ Minimum class complexity | 131.00 |
▷ Maximum class complexity | 198.00 |
Average method complexity | 4.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.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 | 85 | |
▷ Static methods | 1 | 1.18% |
▷ Public methods | 69 | 81.18% |
▷ Protected methods | 16 | 18.82% |
▷ Private methods | 0 | 0.00% |
Functions | 26 | |
▷ Named functions | 26 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 21 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.33MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 82.37KB | 21.34KB | ▼ 74.09% |
assets/screenshot-1.png | 71.17KB | 19.48KB | ▼ 72.63% |
img/thunder-logo.png | 6.59KB | 3.79KB | ▼ 42.58% |
img/logo16.png | 1.44KB | 0.45KB | ▼ 68.61% |
img/Thunderport_square_logo.png | 1.48KB | 0.47KB | ▼ 68.10% |