83% destiny-reviews

Code Review | Destiny Reviews

WordPress plugin Destiny Reviews scored83%from 54 tests.

About plugin

  • Plugin page: destiny-reviews
  • Plugin version: 1.2.2
  • PHP compatiblity: 7.3++
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7.2-5.8
  • WordPress version: 6.3.1
  • First release: Jul 28, 2021
  • Latest release: Aug 30, 2022
  • Number of updates: 21
  • Update frequency: every 19.0 days
  • Top authors: aburkalo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /391 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼11.23ms] Passed 4 tests

Analyzing server-side resources used by Destiny Reviews
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.33 ▼9.85
Dashboard /wp-admin3.34 ▼0.0148.88 ▼11.82
Posts /wp-admin/edit.php3.39 ▲0.0351.38 ▼0.72
Add New Post /wp-admin/post-new.php6.02 ▲0.1486.53 ▼22.52
Media Library /wp-admin/upload.php3.26 ▲0.0337.97 ▲0.73
All Reviews /wp-admin/edit.php?post_type=destiny_reviews3.3038.39
Custom Style /wp-admin/edit.php?post_type=destiny_reviews&page=destiny_review_style3.2335.99
Add New Review /wp-admin/post-new.php?post_type=destiny_reviews3.4047.47
Form Settings /wp-admin/edit.php?post_type=destiny_reviews&page=destiny_review_form3.2335.70

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Destiny Reviews
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9413.20 ▼0.951.56 ▼0.4842.00 ▼2.33
Dashboard /wp-admin2,243 ▲584.89 ▼0.95113.05 ▲4.3341.15 ▼6.69
Posts /wp-admin/edit.php2,129 ▲402.05 ▲0.0339.13 ▼0.9036.17 ▲1.77
Add New Post /wp-admin/post-new.php1,545 ▲2617.53 ▼5.79685.69 ▲90.9854.93 ▲7.66
Media Library /wp-admin/upload.php1,425 ▲434.30 ▲0.13109.38 ▲9.9744.90 ▼0.36
All Reviews /wp-admin/edit.php?post_type=destiny_reviews1,0901.9530.4529.44
Custom Style /wp-admin/edit.php?post_type=destiny_reviews&page=destiny_review_style9282.0926.4727.44
Add New Review /wp-admin/post-new.php?post_type=destiny_reviews1,7193.5267.4333.73
Form Settings /wp-admin/edit.php?post_type=destiny_reviews&page=destiny_review_form9492.0824.4028.31

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

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
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/edit.php?post_type=destiny_reviews&page=destiny_review_style
    • > Rendering (warning) in unknown
    /wp-admin/edit.php?post_type=destiny_reviews&page=destiny_review_style 159 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/edit.php?post_type=destiny_reviews&page=destiny_review_style
    • > Rendering (warning) in unknown
    /wp-admin/edit.php?post_type=destiny_reviews&page=destiny_review_style 166 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/edit.php?post_type=destiny_reviews&page=destiny_review_style
    • > Rendering (warning) in unknown
    /wp-admin/edit.php?post_type=destiny_reviews&page=destiny_review_style 173 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Requires php: Invalid version format
  • Screenshots: These screenshots require images: #6 (User form to submit reviews), #7 (User form settings)
The official readme.txt might help

destiny-reviews/destiny-reviews.php 85% from 13 tests

The main PHP file in "Destiny Reviews" ver. 1.2.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Requires PHP: Required version number should only contain digits separated by dots (ex. "7.0" instead of "7.3+")

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
Good job! No executable or dangerous file extensions detected798 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP108456729
CSS211068
JavaScript2011

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity11.50
▷ Minimum class complexity6.00
▷ Maximum class complexity17.00
Average method complexity6.25
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes150.00%
▷ Concrete classes150.00%
▷ Final classes00.00%
Methods4
▷ Static methods375.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/empty-star.png1.59KB1.57KB▼ 1.35%
images/star.png1.72KB1.22KB▼ 28.98%