89% ultimate-post-review

Code Review | Ultimate Post Review

WordPress plugin Ultimate Post Review scored89%from 54 tests.

About plugin

  • Plugin page: ultimate-post-review
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.2.1
  • WordPress version: 6.3.1
  • First release: May 29, 2019
  • Latest release: May 29, 2019
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: magniumthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /752 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Ultimate Post Review
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0340.16 ▲0.57
Dashboard /wp-admin3.32 ▲0.0244.96 ▼3.20
Posts /wp-admin/edit.php3.37 ▲0.0246.68 ▲2.61
Add New Post /wp-admin/post-new.php5.90 ▲0.0290.46 ▲0.64
Media Library /wp-admin/upload.php3.24 ▲0.0134.27 ▼0.28
Ultimate Post Review /wp-admin/options-general.php?page=upr_settings3.1934.17

Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
upr_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Ultimate Post Review: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,923 ▲16613.63 ▼0.645.29 ▲3.3141.14 ▼0.62
Dashboard /wp-admin2,221 ▲294.85 ▼0.07107.09 ▼5.5040.09 ▼4.69
Posts /wp-admin/edit.php2,103 ▲142.03 ▲0.0437.36 ▲0.5935.96 ▲1.80
Add New Post /wp-admin/post-new.php1,542 ▲2823.47 ▲5.87657.84 ▼42.0149.56 ▼11.52
Media Library /wp-admin/upload.php1,403 ▲124.28 ▲0.0896.40 ▼1.0742.77 ▼5.31
Ultimate Post Review /wp-admin/options-general.php?page=upr_settings9672.1726.2527.87

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% 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
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • upr_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tags: You are using too many tags: 19 tag instead of maximum 10
The official readme.txt might help

ultimate-post-review/ultimate-post-review-light.php 92% from 13 tests

Analyzing the main PHP file in "Ultimate Post Review" version 1.0.0
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ultimate-post-review.php" instead of "ultimate-post-review-light.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected684 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP10188579492
CSS238187
JavaScript1205

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity6.29
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods31
▷ Static methods26.45%
▷ Public methods2580.65%
▷ Protected methods00.00%
▷ Private methods619.35%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin