84% clariti

Code Review | Clariti

WordPress plugin Clariti scored84%from 54 tests.

About plugin

  • Plugin page: clariti
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: Mar 10, 2021
  • Latest release: Nov 17, 2023
  • Number of updates: 20
  • Update frequency: every 49.1 days
  • Top authors: danielbachhuber (80%)clariti (25%)

Code review

54 tests

User reviews

1 review

Install metrics

800+ active /19,286 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.63ms] Passed 4 tests

A check of server-side resources used by Clariti
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0838.55 ▼1.10
Dashboard /wp-admin3.38 ▲0.0444.48 ▼16.43
Posts /wp-admin/edit.php3.43 ▲0.0847.22 ▲1.24
Add New Post /wp-admin/post-new.php6.04 ▲0.1582.72 ▼6.24
Media Library /wp-admin/upload.php3.30 ▲0.0835.17 ▲1.24
Clariti /wp-admin/options-general.php?page=clariti3.2733.37

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

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

Browser metrics Passed 4 tests

Clariti: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲4714.57 ▲0.231.49 ▼0.1538.78 ▼4.95
Dashboard /wp-admin2,202 ▲255.58 ▼0.1088.18 ▼10.9241.67 ▼1.79
Posts /wp-admin/edit.php2,104 ▲41.95 ▲0.0142.71 ▲5.6735.89 ▲2.54
Add New Post /wp-admin/post-new.php1,529 ▲323.15 ▼0.07668.89 ▲76.1263.02 ▲21.34
Media Library /wp-admin/upload.php1,404 ▲44.19 ▲0.0198.65 ▼2.4241.83 ▼2.03
Clariti /wp-admin/options-general.php?page=clariti7692.0025.5724.88

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/clariti/clariti.php:21

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 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: site optimization, blogging

clariti/clariti.php 92% from 13 tests

The main file in "Clariti" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected645 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP6133369645

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity22.25
▷ Minimum class complexity3.00
▷ Maximum class complexity57.00
Average method complexity3.66
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods32
▷ Static methods32100.00%
▷ Public methods3196.88%
▷ Protected methods13.12%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants15
▷ Global constants16.67%
▷ Class constants1493.33%
▷ Public constants14100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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