78% clicface-trombi

Code Review | Clicface Trombi

WordPress plugin Clicface Trombi scored78%from 54 tests.

About plugin

  • Plugin page: clicface-trombi
  • 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: Apr 1, 2013
  • Latest release: May 19, 2023
  • Number of updates: 53
  • Update frequency: every 69.8 days
  • Top authors: clicface (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

600+ active /27,971 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.26MB] [CPU: ▼8.79ms] Passed 4 tests

This is a short check of server-side resources used by Clicface Trombi
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2943.60 ▲0.09
Dashboard /wp-admin3.57 ▲0.2252.50 ▼13.71
Posts /wp-admin/edit.php3.68 ▲0.3347.40 ▼4.65
Add New Post /wp-admin/post-new.php6.15 ▲0.2685.40 ▼16.87
Media Library /wp-admin/upload.php3.49 ▲0.2639.56 ▲0.48
Settings /wp-admin/edit.php?post_type=collaborateur&page=clicface-trombi-settings3.4937.47
Worksites /wp-admin/edit-tags.php?taxonomy=collaborateur_worksite&post_type=collaborateur3.6138.13
Add New /wp-admin/post-new.php?post_type=collaborateur3.5660.97
Employees /wp-admin/edit.php?post_type=collaborateur3.5643.52
Divisions /wp-admin/edit-tags.php?taxonomy=collaborateur_service&post_type=collaborateur3.6136.65

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
clicface_trombi_settings
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Clicface Trombi
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7014.36 ▲0.021.72 ▼0.1743.00 ▼1.22
Dashboard /wp-admin2,234 ▲545.49 ▼0.0997.26 ▲1.4543.60 ▲4.62
Posts /wp-admin/edit.php2,139 ▲392.00 ▲0.0135.26 ▼10.2035.20 ▼5.11
Add New Post /wp-admin/post-new.php1,558 ▲3023.12 ▲0.13619.09 ▼42.4649.23 ▼4.62
Media Library /wp-admin/upload.php1,439 ▲364.31 ▲0.16105.45 ▼9.3346.63 ▼1.67
Settings /wp-admin/edit.php?post_type=collaborateur&page=clicface-trombi-settings1,1143.1739.2524.74
Worksites /wp-admin/edit-tags.php?taxonomy=collaborateur_worksite&post_type=collaborateur1,3122.1227.8329.40
Add New /wp-admin/post-new.php?post_type=collaborateur2,2613.6369.9334.29
Employees /wp-admin/edit.php?post_type=collaborateur1,2963.3542.0827.13
Divisions /wp-admin/edit-tags.php?taxonomy=collaborateur_service&post_type=collaborateur1,3122.1227.6031.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • clicface_trombi_settings

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/post-new.php?post_type=collaborateur
    • > Notice in wp-content/plugins/clicface-trombi/clicface-trombi.php+535
    Undefined index: clicface-trombi-images-type-collaborateur-photo

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/clicface-trombi/clicface-trombi.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/clicface-trombi/clicface-trombi.php:13
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/clicface-trombi/clicface-trombi.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/clicface-trombi/templates/single-collaborateur.php:3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/clicface-trombi/clicface-trombi.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/clicface-trombi/includes/settings-initialization.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

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

"Clicface Trombi" version 2.08's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
76 characters long description:
A great plugin for WordPress that creates a directory of all your employees.

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
No dangerous file extensions were detected2,012 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP4100301,224
PO File1210492468
CSS4441247
JavaScript225973

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.31
Average class complexity11.50
▷ Minimum class complexity7.00
▷ Maximum class complexity16.00
Average method complexity3.29
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/youtube.png2.94KB3.05KB0.00%
css/sprite.png11.62KB4.15KB▼ 64.30%
img/clicface-trombi-images-placeholder.png1.06KB0.17KB▼ 84.48%
img/facebook.png2.52KB2.63KB0.00%
img/twitter.png2.78KB2.89KB0.00%