Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.55MB] [CPU: ▼135.36ms] Passed 4 tests
Server-side resources used by AJ Review
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.79 | 47.18 ▲26.95 |
Dashboard /wp-admin | 3.59 ▲0.54 | 43.49 ▼3.75 |
Posts /wp-admin/edit.php | 3.71 ▲0.60 | 47.56 ▲4.58 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.51 | 100.86 ▼539.20 |
Media Library /wp-admin/upload.php | 3.54 ▲0.54 | 29.51 ▼3.07 |
Settings /wp-admin/admin.php?page=ajrv_options_page_html | 3.57 | 36.53 |
Shortcode Manual /wp-admin/admin.php?page=ajrv_rlist_shcode | 3.51 | 33.85 |
Review list /wp-admin/admin.php?page=ajrv_rlist | 3.61 | 35.90 |
Review group /wp-admin/admin.php?page=ajrv_rlist_group | 3.53 | 37.59 |
Add New Review /wp-admin/admin.php?page=ajrv_rlist_new | 3.56 | 32.90 |
Server storage [IO: ▲4.21MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 119 new files
Database: 5 new tables, 2 new options
New tables |
---|
wp_ajrv_category |
wp_ajrv_review_user |
wp_ajrv_review |
wp_ajrv_group |
wp_ajrv_review_item |
New WordPress options |
---|
ajrv_db_version |
widget_aj_review |
Browser metrics Passed 4 tests
An overview of browser requirements for AJ Review
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,883 ▲287 | 16.89 ▲0.91 | 17.39 ▲8.23 | 44.06 ▼2.93 |
Dashboard /wp-admin | 3,021 ▲87 | 6.79 ▲0.80 | 145.25 ▼10.96 | 124.32 ▲14.08 |
Posts /wp-admin/edit.php | 2,786 ▲47 | 3.04 ▲0.33 | 72.52 ▲6.83 | 88.64 ▼7.23 |
Add New Post /wp-admin/post-new.php | 1,663 ▲163 | 21.88 ▲3.19 | 371.07 ▼25.56 | 119.48 ▲9.46 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.47 ▲0.43 | 144.05 ▼6.88 | 137.34 ▲17.85 |
Settings /wp-admin/admin.php?page=ajrv_options_page_html | 1,496 | 2.62 | 63.62 | 87.68 |
Shortcode Manual /wp-admin/admin.php?page=ajrv_rlist_shcode | 1,668 | 2.61 | 58.20 | 102.29 |
Review list /wp-admin/admin.php?page=ajrv_rlist | 1,338 | 2.60 | 60.05 | 66.10 |
Review group /wp-admin/admin.php?page=ajrv_rlist_group | 1,285 | 2.60 | 57.63 | 66.39 |
Add New Review /wp-admin/admin.php?page=ajrv_rlist_new | 1,105 | 2.57 | 59.91 | 73.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure failed, leaving 5 tables in the database
- wp_ajrv_group
- wp_ajrv_review_item
- wp_ajrv_review
- wp_ajrv_category
- wp_ajrv_review_user
- Zombie WordPress options detected upon uninstall: 2 options
- ajrv_db_version
- widget_aj_review
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/aj-review/test.php
- 90× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: list_criteria in wp-content/plugins/aj-review/views/skins/basic_3/filterbox.php on line 31
- > PHP Notice
Undefined variable: reviewcount in wp-content/plugins/aj-review/views/skins/basic_3/filterbox.php on line 57
- > PHP Notice
Undefined variable: ordering in wp-content/plugins/aj-review/views/skins/basic_2/filterbox.php on line 43
- > PHP Notice
Undefined variable: detailshow in wp-content/plugins/aj-review/views/skins/basic_4/filterbox.php on line 68
- > PHP Notice
Undefined variable: detailshow in wp-content/plugins/aj-review/views/skins/basic_2/filterbox.php on line 71
- > PHP Notice
Undefined variable: filter_criteria in wp-content/plugins/aj-review/views/skins/basic_4/filterbox.php on line 30
- > PHP Notice
Undefined variable: ordering in wp-content/plugins/aj-review/views/skins/basic_4/filterbox.php on line 43
- > PHP Notice
Undefined variable: filter_title in wp-content/plugins/aj-review/views/skins/basic_3/filterbox.php on line 8
- > PHP Notice
Undefined variable: reviewcount in wp-content/plugins/aj-review/views/skins/basic_4/filterbox.php on line 55
- > PHP Notice
Undefined variable: detailshow in wp-content/plugins/aj-review/views/skins/basic_3/filterbox.php on line 67
- > PHP Notice
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 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Donate link: Please fix this invalid url: ""
- Screenshots: Please add descriptions for these screenshots #5, #6, #7 in aj-review/assets to your readme.txt
aj-review/aj-review.php Passed 13 tests
Analyzing the main PHP file in "AJ Review" version 0.9.3
37 characters long description:
Powerfull Review Plugin for post/page
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin19,812 lines of code in 79 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 9,026 |
PO File | 11 | 1,961 | 2,281 | 4,302 |
PHP | 47 | 184 | 120 | 4,195 |
CSS | 12 | 6 | 252 | 1,475 |
JavaScript | 6 | 360 | 241 | 814 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 1 | 2.94% |
▷ Public methods | 25 | 73.53% |
▷ Protected methods | 5 | 14.71% |
▷ Private methods | 4 | 11.76% |
Functions | 39 | |
▷ Named functions | 36 | 92.31% |
▷ Anonymous functions | 3 | 7.69% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.25MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/aj-review-skin-dark.png | 51.71KB | 19.27KB | ▼ 62.73% |
images/aj-review-skin-box.png | 31.17KB | 12.70KB | ▼ 59.27% |
images/aj-review-skin-white.png | 26.16KB | 11.20KB | ▼ 57.18% |
views/skins/basic_4/aj-review-no-image.png | 5.22KB | 1.83KB | ▼ 65.02% |
review.png | 1.99KB | 0.78KB | ▼ 60.55% |