73% clickio-prism

Code Review | Clickio Prism

WordPress plugin Clickio Prism scored73%from 54 tests.

About plugin

  • Plugin page: clickio-prism
  • Plugin version: 2.29.15
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Aug 12, 2020
  • Latest release: Jul 26, 2023
  • Number of updates: 215
  • Update frequency: every 5.0 days
  • Top authors: clickio (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

20+ active /6,108 total downloads

Benchmarks

Plugin footprint 65% from 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: ▲1.44MB] [CPU: ▲7.27ms] Passed 4 tests

This is a short check of server-side resources used by Clickio Prism
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.84 ▲1.3852.14 ▲6.71
Dashboard /wp-admin4.75 ▲1.4562.83 ▲8.73
Posts /wp-admin/edit.php4.84 ▲1.4964.27 ▲14.42
Add New Post /wp-admin/post-new.php7.41 ▲1.5298.60 ▼0.80
Media Library /wp-admin/upload.php4.67 ▲1.4552.87 ▲14.90
Clickio /wp-admin/options-general.php?page=clickio_opt4.9554.73

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 218 new files
Database: 2 new tables, 8 new options
New tables
wp_clickio_captcha
wp_clickio_pagewidgets
New WordPress options
can_compress_scripts
clickio_opt
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
clickio_appkey

Browser metrics Passed 4 tests

An overview of browser requirements for Clickio Prism
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,868 ▲12213.23 ▼1.171.62 ▼0.1444.59 ▼2.99
Dashboard /wp-admin2,242 ▲544.92 ▲0.03106.07 ▼0.8242.82 ▼0.48
Posts /wp-admin/edit.php2,125 ▲362.02 ▲0.0239.04 ▲2.3334.72 ▲0.47
Add New Post /wp-admin/post-new.php1,553 ▲3123.39 ▲0.32605.12 ▼75.5051.01 ▼2.94
Media Library /wp-admin/upload.php1,427 ▲424.19 ▲0.0296.98 ▼14.3343.93 ▼3.83
Clickio /wp-admin/options-general.php?page=clickio_opt1,6792.0422.6928.41

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_clickio_captcha
    • wp_clickio_pagewidgets
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_theysaidso_widget
    • clickio_appkey
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • clickio_opt
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 139× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Clickio\\Utils\\Container' not found in wp-content/plugins/clickio-prism/src/Listings/Containers/FilterParamsContainer.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Clickio\\Integration\\Services\\AbstractIntegrationService' not found in wp-content/plugins/clickio-prism/src/Integration/Services/WPSEO.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Clickio\\Integration\\Services\\AbstractIntegrationService' not found in wp-content/plugins/clickio-prism/src/Integration/Services/SGR.php:16
    • > PHP Fatal error
      Trait 'Clickio\\Logger\\LoggerAccess' not found in wp-content/plugins/clickio-prism/src/Prism/Cache/Engine/AbstractCacheService.php on line 16
    • > PHP Fatal error
      Trait 'Clickio\\Logger\\LoggerAccess' not found in wp-content/plugins/clickio-prism/src/Prism/Cache/CacheManager.php on line 20
    • > PHP Fatal error
      Trait 'Clickio\\Logger\\LoggerAccess' not found in wp-content/plugins/clickio-prism/src/RestApi/BaseRestAction.php on line 21
    • > PHP Fatal error
      Uncaught Error: Class 'Clickio\\Integration\\Services\\AbstractIntegrationService' not found in wp-content/plugins/clickio-prism/src/Integration/Services/AdvancedCustomFields.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Clickio\\Utils\\ValidatedContainer' not found in wp-content/plugins/clickio-prism/src/RestApi/Actions/Containers/SubscribeContainer.php:17
    • > PHP Fatal error
      Trait 'Clickio\\Logger\\LoggerAccess' not found in wp-content/plugins/clickio-prism/src/Utils/WebSub.php on line 22
    • > PHP Fatal error
      Uncaught Error: Class 'Clickio\\Integration\\Services\\AbstractIntegrationService' not found in wp-content/plugins/clickio-prism/src/Integration/Services/AddThis.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: ad, prism, monetization, clickio, amp...

clickio-prism/clickioprism.php 77% from 13 tests

The primary PHP file in "Clickio Prism" version 2.29.15 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")
  • Main file name: The principal plugin file should be the same as the plugin slug ("clickio-prism.php" instead of "clickioprism.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected15,142 lines of code in 211 files:
LanguageFilesBlank linesComment linesLines of code
PHP2063,1309,75014,703
JSON300220
CSS1203123
JavaScript1254696

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity9.13
▷ Minimum class complexity1.00
▷ Maximum class complexity96.00
Average method complexity2.93
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces44
Interfaces21
Traits1
Classes175
▷ Abstract classes116.29%
▷ Concrete classes16493.71%
▷ Final classes6539.63%
Methods867
▷ Static methods36842.45%
▷ Public methods66576.70%
▷ Protected methods16318.80%
▷ Private methods394.50%
Functions57
▷ Named functions2645.61%
▷ Anonymous functions3154.39%
Constants121
▷ Global constants1411.57%
▷ Class constants10788.43%
▷ Public constants107100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 1.03MB with 0.65MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/Plugin cover.png1,048.53KB260.06KB▼ 75.20%
assets/prism logo 128.png9.97KB4.90KB▼ 50.82%