Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-content/plugins/tsu-popup/tsu-popup.php+295
Use of undefined constant tsu_content_settings - assumed 'tsu_content_settings' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.79MB] [CPU: ▼58.59ms] Passed 4 tests
A check of server-side resources used by Tsu Popup
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.21 ▼1.26 | 4.93 ▼35.70 |
Dashboard /wp-admin | 2.23 ▼1.12 | 6.98 ▼53.68 |
Posts /wp-admin/edit.php | 2.23 ▼1.13 | 5.63 ▼40.05 |
Add New Post /wp-admin/post-new.php | 2.23 ▼3.66 | 6.58 ▼104.91 |
Media Library /wp-admin/upload.php | 2.23 ▼1.00 | 5.69 ▼28.33 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
tsu_display_settings |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
tsu_control_settings |
widget_recent-comments |
widget_theysaidso_widget |
tsu_content_settings |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Tsu Popup
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,043 ▲297 | 13.89 ▼0.51 | 7.57 ▲5.71 | 49.44 ▲9.53 |
Dashboard /wp-admin | 2,241 ▲53 | 5.13 ▲0.24 | 102.98 ▼12.81 | 83.54 ▲35.46 |
Posts /wp-admin/edit.php | 2,140 ▲51 | 2.39 ▲0.40 | 38.35 ▲2.08 | 38.55 ▲3.85 |
Add New Post /wp-admin/post-new.php | 1,541 ▲22 | 17.99 ▼5.20 | 672.75 ▲77.07 | 34.30 ▼15.43 |
Media Library /wp-admin/upload.php | 1,418 ▲27 | 4.48 ▲0.29 | 97.02 ▼1.49 | 89.41 ▲47.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- > Warning in wp-content/plugins/tsu-popup/tsu-popup.php+295
Use of undefined constant tsu_content_settings - assumed 'tsu_content_settings' (this will throw an Error in a future version of PHP)
- This plugin did not uninstall successfully, leaving 9 options in the database
- can_compress_scripts
- tsu_content_settings
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- tsu_control_settings
- tsu_display_settings
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tsu-popup/tsu-popup.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== tsu-popup ===
)
tsu-popup/tsu-popup.php Passed 13 tests
The main PHP file in "Tsu Popup" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
57 characters long description:
Add your own tsu ( Social Network ) popup in any website.
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
There were no executable files found in this plugin704 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 157 | 175 | 704 |
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 | 23.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 32 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 32 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/2.png | 2.58KB | 1.58KB | ▼ 38.79% |
images/9.png | 1.46KB | 0.84KB | ▼ 42.24% |
images/3.png | 2.01KB | 1.38KB | ▼ 31.44% |
images/6.png | 2.88KB | 1.67KB | ▼ 41.95% |
images/7.png | 2.74KB | 1.65KB | ▼ 39.81% |