88% flaunt-your-clients-free

Code Review | Flaunt Your Clients - Free

WordPress plugin Flaunt Your Clients - Free scored 88% from 54 tests.

About plugin

  • Plugin page: flaunt-your-clien...
  • Plugin version: 0.7.5
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Mar 10, 2014
  • Latest release: Nov 14, 2014
  • Number of updates: 68
  • Update frequency: every 3.7 days
  • Top authors: bahia0019 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 965 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲1.48MB] [CPU: ▼136.12ms] Passed 4 tests

Analyzing server-side resources used by Flaunt Your Clients - Free
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.10 ▲1.3841.66 ▲9.73
Dashboard /wp-admin4.61 ▲1.5553.64 ▲5.37
Posts /wp-admin/edit.php4.66 ▲1.5453.46 ▲0.34
Add New Post /wp-admin/post-new.php6.95 ▲1.5298.04 ▼555.36
Media Library /wp-admin/upload.php4.49 ▲1.4840.88 ▲5.18
Clients /wp-admin/edit-tags.php?taxonomy=Clients&post_type=clients4.4939.97
All Clients /wp-admin/edit.php?post_type=clients4.5344.07
Add New /wp-admin/post-new.php?post_type=clients4.6351.04
Clients /wp-admin/edit-tags.php?taxonomy=Clients4.4943.73

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 111 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Flaunt Your Clients - Free: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,727 ▲9015.82 ▼0.168.15 ▼0.2343.10 ▼7.88
Dashboard /wp-admin3,004 ▲705.95 ▼0.04132.86 ▼27.51132.33 ▲19.96
Posts /wp-admin/edit.php2,846 ▲1072.70 ▲0.0166.95 ▼0.3695.39 ▲1.80
Add New Post /wp-admin/post-new.php4,602 ▲2,93027.11 ▲8.17529.11 ▲147.23122.17 ▲11.88
Media Library /wp-admin/upload.php1,795 ▼95.01 ▲0.02128.40 ▼24.99144.74 ▲24.97
Clients /wp-admin/edit-tags.php?taxonomy=Clients&post_type=clients1,7702.5157.2383.37
All Clients /wp-admin/edit.php?post_type=clients1,4892.5557.9372.84
Add New /wp-admin/post-new.php?post_type=clients3,65311.28254.91133.02
Clients /wp-admin/edit-tags.php?taxonomy=Clients1,7672.4957.8084.73

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=clients
    • > User deprecated in wp-includes/functions.php+5211
    wp_richedit_pre is deprecated since version 4.3.0! Use format_for_editor() instead.

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 45× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/flaunt-your-clients-free/includes/advanced-custom-fields/core/fields/wysiwyg.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/flaunt-your-clients-free/includes/client-template.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/flaunt-your-clients-free/includes/advanced-custom-fields/core/fields/text.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/flaunt-your-clients-free/includes/advanced-custom-fields/core/fields/file.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/flaunt-your-clients-free/includes/advanced-custom-fields/core/views/meta_box_options.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/flaunt-your-clients-free/includes/advanced-custom-fields/core/fields/tab.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flaunt-your-clients-free/includes/advanced-custom-fields/core/controllers/everything_fields.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flaunt-your-clients-free/includes/advanced-custom-fields/core/controllers/upgrade.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/flaunt-your-clients-free/includes/advanced-custom-fields/core/fields/taxonomy.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/flaunt-your-clients-free/includes/advanced-custom-fields/core/fields/select.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
No tags were found

flaunt-your-clients-free/flaunt-your-clients.php 85% from 13 tests

The main PHP script in "Flaunt Your Clients - Free" version 0.7.5 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 212 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("flaunt-your-clients-free.php" instead of "flaunt-your-clients.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin18,273 lines of code in 68 files:
LanguageFilesBlank linesComment linesLines of code
PHP514,1565,19910,930
JavaScript81,9771,6464,207
CSS87443992,971
Markdown1420165

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity28.51
▷ Minimum class complexity1.00
▷ Maximum class complexity161.00
Average method complexity4.13
▷ Minimum method complexity1.00
▷ Maximum method complexity62.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes43
▷ Abstract classes00.00%
▷ Concrete classes43100.00%
▷ Final classes00.00%
Methods378
▷ Static methods10126.72%
▷ Public methods37097.88%
▷ Protected methods00.00%
▷ Private methods82.12%
Functions59
▷ Named functions59100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.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
32 compressed PNG files occupy 0.07MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/advanced-custom-fields/core/fields/date_picker/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
includes/advanced-custom-fields/core/fields/date_picker/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
includes/advanced-custom-fields/images/arrows@2x.png0.84KB0.88KB0.00%
lib/metabox/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
includes/advanced-custom-fields/core/fields/date_picker/images/ui-bg_highlight-soft_0_444444_1x100.png0.08KB0.08KB0.00%