94% recolize

Code Review | Recolize

WordPress plugin Recolize scored 94% from 54 tests.

About plugin

  • Plugin page: recolize
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.8
  • WordPress version: 5.8.1
  • First release: Sep 9, 2015
  • Latest release: Aug 30, 2021
  • Number of updates: 19
  • Update frequency: every 114.8 days
  • Top authors: recolize (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 955 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼148.75ms] Passed 4 tests

Server-side resources used by Recolize
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.78 ▼0.0522.90 ▼11.81
Dashboard /wp-admin3.12 ▲0.0642.98 ▼3.35
Posts /wp-admin/edit.php3.23 ▲0.1244.86 ▼0.13
Add New Post /wp-admin/post-new.php5.47 ▲0.0488.66 ▼577.78
Media Library /wp-admin/upload.php3.06 ▲0.0632.88 ▼2.06
Recolize /wp-admin/options-general.php?page=recolize3.0029.85

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Recolize
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,707 ▲10115.82 ▼0.1811.26 ▼1.0943.76 ▼8.60
Dashboard /wp-admin2,978 ▲445.86 ▼0.35143.40 ▼20.76110.63 ▲3.66
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0168.06 ▼1.6888.89 ▲2.10
Add New Post /wp-admin/post-new.php1,679 ▼418.89 ▲0.38398.57 ▲5.83103.73 ▼3.77
Media Library /wp-admin/upload.php1,812 ▲55.00 ▼0.02154.18 ▲4.49110.61 ▼5.05
Recolize /wp-admin/options-general.php?page=recolize1,0452.1854.2876.19

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=recolize
    • > Notice in wp-content/plugins/recolize/admin/Settings.php+96
    Trying to access array offset on value of type bool

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: recolize, recommendation, engine, posts, recommended items...

recolize/recolize.php Passed 13 tests

The principal PHP file in "Recolize" v. 1.1.6 is loaded by WordPress automatically on each request
129 characters long description:
This plugin enables you to use the Recolize Recommendation Engine in your WordPress blog to offer a personalized blog experience.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin252 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP662224252

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.68
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods22
▷ Static methods313.64%
▷ Public methods1777.27%
▷ Protected methods313.64%
▷ Private methods29.09%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin