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.05MB] [CPU: ▼2.69ms] Passed 4 tests
This is a short check of server-side resources used by TWPW Roll Over Gallery
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.41 ▼0.72 |
Dashboard /wp-admin | 3.36 ▲0.05 | 47.52 ▼5.49 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 45.21 ▼0.80 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 93.21 ▲2.58 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 33.89 ▼3.75 |
Roll Over Gallery /wp-admin/edit.php?post_type=rog | 3.32 | 36.16 |
Roll Over Gallery Categories /wp-admin/edit-tags.php?taxonomy=rog_categories&post_type=rog | 3.27 | 34.51 |
Add new Roll Over Gallery /wp-admin/post-new.php?post_type=rog | 3.43 | 49.58 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TWPW Roll Over Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲117 | 13.40 ▼0.87 | 1.77 ▼0.12 | 47.04 ▼3.04 |
Dashboard /wp-admin | 2,243 ▲55 | 4.84 ▲0.01 | 104.85 ▼8.35 | 37.32 ▼9.77 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 2.00 ▼0.05 | 39.49 ▲4.47 | 34.38 ▼2.35 |
Add New Post /wp-admin/post-new.php | 1,546 ▼121 | 17.83 ▼3.99 | 652.67 ▼46.64 | 65.18 ▲16.79 |
Media Library /wp-admin/upload.php | 1,422 ▲37 | 4.21 ▼0.04 | 103.45 ▼0.02 | 46.94 ▲2.28 |
Roll Over Gallery /wp-admin/edit.php?post_type=rog | 1,090 | 2.00 | 31.77 | 31.55 |
Roll Over Gallery Categories /wp-admin/edit-tags.php?taxonomy=rog_categories&post_type=rog | 1,302 | 2.26 | 27.48 | 28.26 |
Add new Roll Over Gallery /wp-admin/post-new.php?post_type=rog | 2,327 | 7.65 | 168.90 | 67.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
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
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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/twpw-roll-over-gallery/twpw_user_rog.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% 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: spam, comments, remote comment spam
twpw-roll-over-gallery/twpw_user_rog.php 85% from 13 tests
"TWPW Roll Over Gallery" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 245 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("twpw-roll-over-gallery.php" instead of "twpw_user_rog.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
No dangerous file extensions were detected238 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 16 | 10 | 162 |
CSS | 1 | 8 | 7 | 45 |
JavaScript | 1 | 5 | 1 | 31 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin