89% ultimate-post-recipe-light

Code Review | Ultimate Post Recipe

WordPress plugin Ultimate Post Recipe scored89%from 54 tests.

About plugin

  • Plugin page: ultimate-post-rec...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.7.1
  • WordPress version: 6.3.1
  • First release: Jun 11, 2021
  • Latest release: Jun 11, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: magniumthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /430 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Ultimate Post Recipe
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0246.27 ▲7.24
Dashboard /wp-admin3.32 ▲0.0241.86 ▼15.24
Posts /wp-admin/edit.php3.37 ▲0.0249.47 ▲7.33
Add New Post /wp-admin/post-new.php5.90 ▲0.0280.66 ▼24.52
Media Library /wp-admin/upload.php3.24 ▲0.0132.89 ▲3.07
Ultimate Post Recipe /wp-admin/options-general.php?page=uprc_settings3.1932.79

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
uprc_options
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ultimate Post Recipe
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲15213.37 ▼1.017.94 ▲6.2438.41 ▼4.54
Dashboard /wp-admin2,206 ▲315.52 ▼0.1289.81 ▼10.4639.70 ▲1.84
Posts /wp-admin/edit.php2,114 ▲112.03 ▲0.0839.03 ▼2.0439.72 ▲2.22
Add New Post /wp-admin/post-new.php1,540 ▲423.09 ▲4.68661.65 ▲7.9751.53 ▼15.24
Media Library /wp-admin/upload.php1,411 ▲174.17 ▼0.04105.35 ▲13.6744.45 ▲3.92
Ultimate Post Recipe /wp-admin/options-general.php?page=uprc_settings1,0202.1723.5130.51

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • uprc_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt is a good inspiration

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

The main PHP script in "Ultimate Post Recipe" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected5,784 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS32182,533
PHP10189581575
JavaScript1205

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity7.29
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity25.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected