Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/tinywebgallery-wrapper/tinywebgallery-wrapper.php+24
Methods with the same name as their class will not be constructors in a future version of PHP; twgWrapper has a deprecated constructor
Server metrics [RAM: ▼1.84MB] [CPU: ▼52.18ms] Passed 4 tests
A check of server-side resources used by TinyWebGallery wrapper
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.32 | 4.49 ▼38.49 |
Dashboard /wp-admin | 2.16 ▼1.13 | 6.00 ▼43.81 |
Posts /wp-admin/edit.php | 2.17 ▼1.19 | 5.41 ▼41.92 |
Add New Post /wp-admin/post-new.php | 2.17 ▼3.72 | 5.46 ▼84.48 |
Media Library /wp-admin/upload.php | 2.17 ▼1.06 | 5.60 ▼28.88 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
twgWrapperAdminOptions |
widget_recent-posts |
widget_twg_random_image_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by TinyWebGallery wrapper
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲162 | 13.90 ▲0.30 | 7.96 ▲3.67 | 41.09 ▼0.52 |
Dashboard /wp-admin | 2,210 ▲32 | 5.83 ▲0.85 | 105.46 ▼5.34 | 37.95 ▼20.46 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.04 ▲0.00 | 39.82 ▲4.84 | 35.39 ▲2.16 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.18 ▲5.61 | 649.32 ▼39.35 | 59.85 ▲6.67 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.15 ▼0.05 | 110.12 ▲12.41 | 43.95 ▼2.89 |
TinyWebGallery /wp-admin/tinywebgallery-wrapper.php | 26 | 0.44 | 0.09 | 13.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/tinywebgallery-wrapper/tinywebgallery-wrapper.php+24
Methods with the same name as their class will not be constructors in a future version of PHP; twgWrapper has a deprecated constructor
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_twg_random_image_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- twgWrapperAdminOptions
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/tinywebgallery-wrapper/tinywebgallery-random-widget.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/tinywebgallery-wrapper/tinywebgallery-random-widget.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/tinywebgallery-wrapper/tinywebgallery-admin-page.php:18
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/tinywebgallery-wrapper.php
- > Network (severe)
wp-admin/tinywebgallery-wrapper.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== tinywebgallery-wrapper ===
) - Screenshots: Please add an image for screenshot #1 (The section to enter the TWG admin details.)
tinywebgallery-wrapper/tinywebgallery-wrapper.php 92% from 13 tests
The main PHP script in "TinyWebGallery wrapper" version 2.4 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Good job! No executable or dangerous file extensions detected1,088 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 64 | 68 | 807 |
PO File | 1 | 117 | 127 | 259 |
CSS | 1 | 4 | 0 | 22 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 47.00 |
▷ Minimum class complexity | 35.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 7.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.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 | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/jfu_logo_32x32.png | 2.11KB | 1.80KB | ▼ 14.97% |
img/logo.png | 5.11KB | 2.77KB | ▼ 45.75% |