Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/gallery-voting/index.php+15
Methods with the same name as their class will not be constructors in a future version of PHP; GalleryVoting has a deprecated constructor
Server metrics [RAM: ▼1.82MB] [CPU: ▼53.47ms] Passed 4 tests
A check of server-side resources used by Tribulant Gallery Voting
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.29 | 5.61 ▼37.09 |
Dashboard /wp-admin | 2.19 ▼1.12 | 5.68 ▼42.68 |
Posts /wp-admin/edit.php | 2.19 ▼1.17 | 7.37 ▼51.67 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.70 | 5.80 ▼82.43 |
Media Library /wp-admin/upload.php | 2.19 ▼1.04 | 6.48 ▼27.58 |
Gallery Voting /wp-admin/options-general.php?page=gallery-voting | 2.19 | 8.80 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: 1 new table, 11 new options
New tables |
---|
wp_galleryvotes |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
gallery_voting_max_all |
db_upgraded |
gallery_voting_max_same |
gallery_voting_tracking |
theysaidso_admin_options |
gallery_voting_css |
gallery_voting_usersallowed |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Tribulant Gallery Voting
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲106 | 13.59 ▼0.79 | 2.06 ▲0.07 | 42.92 ▼2.58 |
Dashboard /wp-admin | 2,213 ▲22 | 4.86 ▼0.01 | 109.62 ▲1.69 | 38.49 ▼2.84 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.00 ▲0.02 | 39.37 ▼0.55 | 35.62 ▼2.47 |
Add New Post /wp-admin/post-new.php | 1,543 ▲15 | 23.41 ▲4.94 | 668.18 ▲57.60 | 72.88 ▲11.64 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.19 ▼0.03 | 101.20 ▲3.87 | 40.27 ▼3.12 |
Gallery Voting /wp-admin/options-general.php?page=gallery-voting | 877 | 2.04 | 31.49 | 32.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/gallery-voting/index.php+15
Methods with the same name as their class will not be constructors in a future version of PHP; GalleryVoting has a deprecated constructor
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_galleryvotes
- Zombie WordPress options were found after uninstall: 11 options
- gallery_voting_usersallowed
- db_upgraded
- gallery_voting_tracking
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- gallery_voting_max_all
- widget_recent-posts
- gallery_voting_css
- gallery_voting_max_same
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=gallery-voting
- > Deprecated in wp-content/plugins/gallery-voting/index.php+15
Methods with the same name as their class will not be constructors in a future version of PHP; GalleryVoting has a deprecated constructor
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 take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/gallery-voting/index.php:533
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Screenshot #1 (Sample of a WordPress image/photo gallery with the vote/like link and vote count below each photo.) image required
gallery-voting/index.php 85% from 13 tests
The main PHP script in "Tribulant Gallery Voting" version 1.2.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("gallery-voting.php" instead of "index.php")
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin435 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 75 | 52 | 420 |
CSS | 1 | 1 | 0 | 15 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 71.00 |
▷ Minimum class complexity | 71.00 |
▷ Maximum class complexity | 71.00 |
Average method complexity | 6.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 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.31MB with 0.23MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 317.51KB | 84.96KB | ▼ 73.24% |