84% clicface-organi

Code Review | Clicface Organi

WordPress plugin Clicface Organi scored 84% from 54 tests.

About plugin

  • Plugin page: clicface-organi
  • Plugin version: 2.08
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Aug 7, 2014
  • Latest release: May 19, 2023
  • Number of updates: 28
  • Update frequency: every 114.9 days
  • Top authors: clicface (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active / 23,066 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼9.26ms] Passed 4 tests

Analyzing server-side resources used by Clicface Organi
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.42 ▼7.82
Dashboard /wp-admin3.31 ▲0.0047.49 ▼1.96
Posts /wp-admin/edit.php3.36 ▲0.0047.20 ▼8.36
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.26 ▼18.91
Media Library /wp-admin/upload.php3.23 ▲0.0034.85 ▼0.03

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Clicface Organi
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.501.72 ▲0.1143.08 ▼5.91
Dashboard /wp-admin2,203 ▲125.79 ▲0.8996.64 ▼5.0639.71 ▼2.56
Posts /wp-admin/edit.php2,089 ▲32.05 ▼0.0135.41 ▲1.0233.66 ▲0.95
Add New Post /wp-admin/post-new.php1,514 ▼1917.46 ▼5.73676.83 ▼9.2680.72 ▲18.97
Media Library /wp-admin/upload.php1,391 ▲34.19 ▲0.0096.80 ▼13.4343.80 ▼2.97

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/clicface-organi/clicface-organi.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
7 plugin tags: organigramme, staff directory, organizational chart, org chart, management tool...

clicface-organi/clicface-organi.php Passed 13 tests

"Clicface Organi" version 2.08's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
56 characters long description:
The Org Chart web application. Clicface Trombi required.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,979 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP2128371,060
JavaScript38865667
CSS6607252

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity2.00
▷ Minimum method complexity2.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
8 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/plus-icon.png0.99KB0.92KB▼ 7.22%
img/arrow-up-vide.png0.19KB0.12KB▼ 33.68%
img/refresh-icon.png3.29KB2.09KB▼ 36.47%
img/remove-icon.png1.84KB1.40KB▼ 23.87%
img/switch-icon.png1.97KB1.75KB▼ 11.19%