Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.46ms] Passed 4 tests
This is a short check of server-side resources used by Voting for a Photo
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.25 ▼3.58 |
Dashboard /wp-admin | 3.32 ▲0.02 | 54.13 ▲3.05 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 53.72 ▲3.43 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 90.05 ▼6.78 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.18 ▼2.52 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 40 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_galleryvotes |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Voting for a Photo: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,875 ▲114 | 13.79 ▼0.94 | 7.81 ▲6.01 | 37.77 ▼7.19 |
Dashboard /wp-admin | 2,198 ▲21 | 5.63 ▲0.10 | 84.81 ▼14.87 | 38.38 ▼4.96 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.03 ▲0.04 | 38.08 ▼1.08 | 35.59 ▼1.28 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.57 ▼0.06 | 655.24 ▲0.98 | 58.01 ▲0.07 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.26 ▼0.01 | 98.48 ▼2.73 | 44.05 ▲0.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure failed, leaving 1 table in the database
- wp_galleryvotes
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/voting-for-a-photo/src/Admin/Customizer/CustomizeDonate.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Voting settings in WP standart gallery), #2 (How it looks on the site), #3 (Settings)
voting-for-a-photo/voting-for-a-photo.php 85% from 13 tests
This is the main PHP file of "Voting for a Photo" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,651 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 360 | 343 | 1,204 |
CSS | 1 | 1 | 0 | 274 |
JSON | 3 | 1 | 0 | 72 |
Markdown | 1 | 53 | 0 | 70 |
JavaScript | 1 | 3 | 2 | 31 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 12.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 5 | 7.04% |
▷ Public methods | 64 | 90.14% |
▷ Protected methods | 4 | 5.63% |
▷ Private methods | 3 | 4.23% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/frontend/img/icon-like-stroke-white.png | 2.46KB | 1.81KB | ▼ 26.43% |
assets/frontend/img/icon-like-stroke.png | 2.38KB | 1.73KB | ▼ 27.38% |
screenshot-1.png | 33.08KB | 16.24KB | ▼ 50.90% |
assets/frontend/img/icon-heart-white.png | 2.55KB | 1.52KB | ▼ 40.49% |
assets/frontend/img/icon-heart-stroke.png | 3.43KB | 2.16KB | ▼ 36.94% |