Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.35MB] [CPU: ▼250.18ms] Passed 4 tests
An overview of server-side resources used by Album Reviewer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.14 ▲0.42 | 35.66 ▲14.48 |
Dashboard /wp-admin | 3.45 ▲0.39 | 47.18 ▲5.34 |
Posts /wp-admin/edit.php | 3.50 ▲0.39 | 53.81 ▲11.93 |
Add New Post /wp-admin/post-new.php | 5.73 ▲0.30 | 112.41 ▼1,012.42 |
Media Library /wp-admin/upload.php | 3.31 ▲0.30 | 36.17 ▼5.56 |
Settings /wp-admin/edit.php?post_type=pp_album&page=album-reviewer-settings-menu | 3.32 | 40.23 |
New Album Review /wp-admin/post-new.php?post_type=pp_album | 3.46 | 77.90 |
All Album Reviews /wp-admin/edit.php?post_type=pp_album | 3.45 | 38.19 |
Server storage [IO: ▲2.20MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 65 new files
Database: 2 new tables, 4 new options
New tables |
---|
wp_pp_album_review2_comment_table |
wp_pp_album_review2_page_table |
New WordPress options |
---|
pp_album_review_notify_msg_to_client |
pp_album_review_notify_msg_to_client2 |
pp_album_review_ast |
pp_album_activiated |
Browser metrics Passed 4 tests
Checking browser requirements for Album Reviewer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,917 ▲335 | 17.45 ▲1.95 | 8.59 ▲0.85 | 50.27 ▲4.61 |
Dashboard /wp-admin | 3,191 ▲338 | 7.99 ▲2.16 | 157.39 ▲26.00 | 102.86 ▲5.36 |
Posts /wp-admin/edit.php | 2,970 ▲264 | 4.13 ▲1.44 | 83.42 ▲17.24 | 97.01 ▲8.21 |
Add New Post /wp-admin/post-new.php | 2,066 ▲209 | 19.23 ▲0.07 | 335.82 ▼36.41 | 110.01 ▲3.12 |
Media Library /wp-admin/upload.php | 1,743 ▼29 | 4.73 ▼0.26 | 116.50 ▼37.61 | 111.65 ▼2.24 |
Settings /wp-admin/edit.php?post_type=pp_album&page=album-reviewer-settings-menu | 1,485 | 3.99 | 78.64 | 67.31 |
New Album Review /wp-admin/post-new.php?post_type=pp_album | 2,294 | 5.55 | 112.37 | 66.60 |
All Album Reviews /wp-admin/edit.php?post_type=pp_album | 1,637 | 4.05 | 79.35 | 66.75 |
Uninstaller [IO: ▲0.02MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie tables were found after uninstall: 2 tables
- wp_pp_album_review2_page_table
- wp_pp_album_review2_comment_table
- Zombie WordPress options detected upon uninstall: 4 options
- pp_album_review_notify_msg_to_client
- pp_album_review_notify_msg_to_client2
- pp_album_activiated
- pp_album_review_ast
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/albumreviewer/admin/partials/album-reviewer-admin-display.php
- > /wp-content/plugins/albumreviewer/public/partials/album-reviewer-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
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
8 plugin tags: client proofing, portrait photography, photography proofing, album reviewer, wedding albums...
albumreviewer/ppp-album-reviewer2.php 85% from 13 tests
"Album Reviewer" version 2.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("albumreviewer.php" instead of "ppp-album-reviewer2.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
There were no executable files found in this plugin15,107 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 58 | 80 | 9,639 |
JavaScript | 10 | 949 | 1,057 | 2,740 |
PHP | 15 | 504 | 869 | 1,584 |
SVG | 2 | 0 | 0 | 928 |
JSON | 6 | 0 | 0 | 216 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 12.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 2.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 4 | 5.63% |
▷ Public methods | 53 | 74.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 25.35% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 14 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/speech_bubble_right_2.png | 3.71KB | 1.20KB | ▼ 67.63% |
public/img/speech_bubble_left_2.png | 5.17KB | 0.72KB | ▼ 85.97% |