79% clarobi

Code Review | Clarobi

WordPress plugin Clarobi scored79%from 54 tests.

About plugin

  • Plugin page: clarobi
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Oct 6, 2020
  • Latest release: Oct 6, 2020
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: gitangeorgiana (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /388 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.61MB] [CPU: ▼10.53ms] Passed 4 tests

Analyzing server-side resources used by Clarobi
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0746.06 ▲1.75
Dashboard /wp-admin3.38 ▲0.0753.23 ▲2.75
Posts /wp-admin/edit.php3.49 ▲0.1355.52 ▲8.56
Add New Post /wp-admin/post-new.php3.25 ▼2.6442.22 ▼51.49
Media Library /wp-admin/upload.php3.30 ▲0.0739.85 ▲4.86
ClaroBI /wp-admin/options-general.php?page=clarobi3.2735.12

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 28 new files
Database: 1 new table, 8 new options
New tables
wp_clarobi_products_counters
New WordPress options
clarobi_products_counters_db_version
widget_recent-comments
theysaidso_admin_options
clarobi_show_activation_notice
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Clarobi
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲1514.35 ▲0.001.83 ▼0.2139.22 ▼6.49
Dashboard /wp-admin2,201 ▲245.63 ▲0.1297.12 ▼10.5943.53 ▲1.50
Posts /wp-admin/edit.php2,112 ▲152.02 ▲0.0442.97 ▲6.2836.32 ▼3.48
Add New Post /wp-admin/post-new.php1,537 ▲1123.01 ▼0.44663.57 ▲19.8156.83 ▼2.38
Media Library /wp-admin/upload.php1,415 ▲154.20 ▲0.1199.73 ▼13.8843.78 ▼1.51
ClaroBI /wp-admin/options-general.php?page=clarobi8102.0126.5029.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie tables detected upon uninstall: 1 table
    • wp_clarobi_products_counters
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • clarobi_show_activation_notice
    • can_compress_scripts
    • clarobi_products_counters_db_version
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #2 (Activate the plugin by going to Plugins menu (screenshot-2.png))
  • Donate link: Invalid URI ("")
You can look at the official readme.txt

clarobi/clarobi.php 92% from 13 tests

"Clarobi" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "3.9.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,946 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP233941,0711,610
Markdown2750327
CSS1009

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity7.90
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes21
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes00.00%
Methods92
▷ Static methods1213.04%
▷ Public methods7783.70%
▷ Protected methods77.61%
▷ Private methods88.70%
Functions8
▷ Named functions675.00%
▷ Anonymous functions225.00%
Constants13
▷ Global constants753.85%
▷ Class constants646.15%
▷ Public constants6100.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 images were found in this plugin