84% croct

Code Review | Croct - Content Personalization for WordPress

WordPress plugin Croct - Content Personalization for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: croct
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Sep 18, 2020
  • Latest release: Feb 18, 2021
  • Number of updates: 11
  • Update frequency: every 13.9 days
  • Top authors: marcospassos (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /663 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
Installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼4.69ms] Passed 4 tests

A check of server-side resources used by Croct - Content Personalization for WordPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.1346.75 ▼1.23
Dashboard /wp-admin3.75 ▲0.1852.17 ▼0.52
Posts /wp-admin/edit.php3.80 ▲0.1255.52 ▼0.41
Add New Post /wp-admin/post-new.php6.37 ▲0.2286.37 ▼16.59
Media Library /wp-admin/upload.php3.67 ▲0.1843.47 ▲0.23

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Croct - Content Personalization for WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.26 ▼0.031.89 ▲0.0743.69 ▼5.13
Dashboard /wp-admin2,209 ▲295.70 ▲0.0687.43 ▼2.1070.84 ▲25.35
Posts /wp-admin/edit.php2,129 ▲291.97 ▼0.0339.52 ▲1.3034.92 ▼3.57
Add New Post /wp-admin/post-new.php6,271 ▲4,73126.18 ▲2.781,057.57 ▲340.6768.79 ▲14.83
Media Library /wp-admin/upload.php1,423 ▲264.17 ▼0.00113.04 ▼7.2153.14 ▲4.80

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% 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
  • 17× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Croct\\WordPress\\ExternalDependency' not found in wp-content/plugins/croct/src/Dependency/TagifyStyle.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Croct\\WordPress\\Dependency' not found in wp-content/plugins/croct/src/ExternalDependency.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Croct\\WordPress\\Shortcode' not found in wp-content/plugins/croct/src/Shortcode/PersonalizedShortcode.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Croct\\WordPress\\InlineDependency' not found in wp-content/plugins/croct/src/Dependency/TagifyInitScript.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Croct\\WordPress\\Admin\\Settings\\Field' not found in wp-content/plugins/croct/src/Admin/Settings/SelectField.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Croct\\WordPress\\HookListener' not found in wp-content/plugins/croct/src/Listener/InterestMetatag.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Croct\\WordPress\\Dependency' not found in wp-content/plugins/croct/src/InlineDependency.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Croct\\WordPress\\Admin\\Settings\\Section' not found in wp-content/plugins/croct/src/Admin/Settings/GeneralSection.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Croct\\WordPress\\ExternalDependency' not found in wp-content/plugins/croct/src/Dependency/PlugScript.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Croct\\WordPress\\Shortcode' not found in wp-content/plugins/croct/src/Shortcode/IfShortcode.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
6 plugin tags: marketing, croct, content personalization, optimization, personalization...

croct/croct.php 85% from 13 tests

The main PHP file in "Croct - Content Personalization for WordPress" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Requires PHP: Required version does not match the one declared in readme.txt ("5.4" instead of "5.6")
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,258 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PHP323283811,159
JavaScript219094
SVG1004
CSS1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity3.17
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces7
Interfaces8
Traits0
Classes21
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes21100.00%
Methods121
▷ Static methods10.83%
▷ Public methods10385.12%
▷ Protected methods00.00%
▷ Private methods1814.88%
Functions14
▷ Named functions00.00%
▷ Anonymous functions14100.00%
Constants34
▷ Global constants12.94%
▷ Class constants3397.06%
▷ Public constants33100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected