68% aj-review

Code Review | AJ Review

WordPress plugin AJ Review scored 68% from 54 tests.

About plugin

  • Plugin page: aj-review
  • Plugin version: 0.9.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.3
  • WordPress version: 5.8.1
  • First release: Dec 12, 2019
  • Latest release: Jan 2, 2020
  • Number of updates: 9
  • Update frequency: every 2.3 days
  • Top authors: 2p1d (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 330 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.7947.18 ▲26.95
Dashboard /wp-admin3.59 ▲0.5443.49 ▼3.75
Posts /wp-admin/edit.php3.71 ▲0.6047.56 ▲4.58
Add New Post /wp-admin/post-new.php5.94 ▲0.51100.86 ▼539.20
Media Library /wp-admin/upload.php3.54 ▲0.5429.51 ▼3.07
Settings /wp-admin/admin.php?page=ajrv_options_page_html3.5736.53
Shortcode Manual /wp-admin/admin.php?page=ajrv_rlist_shcode3.5133.85
Review list /wp-admin/admin.php?page=ajrv_rlist3.6135.90
Review group /wp-admin/admin.php?page=ajrv_rlist_group3.5337.59
Add New Review /wp-admin/admin.php?page=ajrv_rlist_new3.5632.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,883 ▲28716.89 ▲0.9117.39 ▲8.2344.06 ▼2.93
Dashboard /wp-admin3,021 ▲876.79 ▲0.80145.25 ▼10.96124.32 ▲14.08
Posts /wp-admin/edit.php2,786 ▲473.04 ▲0.3372.52 ▲6.8388.64 ▼7.23
Add New Post /wp-admin/post-new.php1,663 ▲16321.88 ▲3.19371.07 ▼25.56119.48 ▲9.46
Media Library /wp-admin/upload.php1,812 ▲55.47 ▲0.43144.05 ▼6.88137.34 ▲17.85
Settings /wp-admin/admin.php?page=ajrv_options_page_html1,4962.6263.6287.68
Shortcode Manual /wp-admin/admin.php?page=ajrv_rlist_shcode1,6682.6158.20102.29
Review list /wp-admin/admin.php?page=ajrv_rlist1,3382.6060.0566.10
Review group /wp-admin/admin.php?page=ajrv_rlist_group1,2852.6057.6366.39
Add New Review /wp-admin/admin.php?page=ajrv_rlist_new1,1052.5759.9173.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

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
You can take inspiration from this 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:
LanguageFilesBlank linesComment linesLines of code
SVG30129,026
PO File111,9612,2814,302
PHP471841204,195
CSS1262521,475
JavaScript6360241814

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 code0.35
Average class complexity26.00
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods34
▷ Static methods12.94%
▷ Public methods2573.53%
▷ Protected methods514.71%
▷ Private methods411.76%
Functions39
▷ Named functions3692.31%
▷ Anonymous functions37.69%
Constants12
▷ Global constants12100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/aj-review-skin-dark.png51.71KB19.27KB▼ 62.73%
images/aj-review-skin-box.png31.17KB12.70KB▼ 59.27%
images/aj-review-skin-white.png26.16KB11.20KB▼ 57.18%
views/skins/basic_4/aj-review-no-image.png5.22KB1.83KB▼ 65.02%
review.png1.99KB0.78KB▼ 60.55%