90% appconsent-cmp-sfbx

Code Review | AppConsent CMP by SFBX

WordPress plugin AppConsent CMP by SFBX scored90%from 54 tests.

About plugin

  • Plugin page: appconsent-cmp-sfbx
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Jun 23, 2022
  • Latest release: Jun 23, 2022
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: sfbx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /747 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.22MB] [CPU: ▼2.48ms] Passed 4 tests

An overview of server-side resources used by AppConsent CMP by SFBX
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2239.01 ▼2.04
Dashboard /wp-admin3.52 ▲0.2250.39 ▲1.28
Posts /wp-admin/edit.php3.64 ▲0.2851.63 ▼2.72
Add New Post /wp-admin/post-new.php6.12 ▲0.2393.32 ▼6.45
Media Library /wp-admin/upload.php3.45 ▲0.2140.03 ▲6.83

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for AppConsent CMP by SFBX
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲7113.21 ▼1.394.15 ▲1.5942.36 ▼3.27
Dashboard /wp-admin2,237 ▲465.05 ▼0.8498.46 ▼14.0691.77 ▲44.17
Posts /wp-admin/edit.php2,123 ▲522.01 ▼0.0344.30 ▲6.9234.28 ▼2.17
Add New Post /wp-admin/post-new.php1,548 ▲1123.15 ▼0.06727.96 ▲103.6072.56 ▲21.60
Media Library /wp-admin/upload.php1,416 ▲254.24 ▲0.0796.21 ▼4.9873.77 ▲30.59

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: gdpr, cookie, banner, eprivacy, privacy...

appconsent-cmp-sfbx/appconsent-cmp-sfbx.php Passed 13 tests

"AppConsent CMP by SFBX" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
89 characters long description:
This plugin helps you to setup the AppConsent CMP easily. ( Consent Management Platform )

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 detected1,724 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP13157434918
PO File1311314718
CSS28066
JavaScript51117
SVG1005

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity12.80
▷ Minimum class complexity1.00
▷ Maximum class complexity35.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods2281.48%
▷ Protected methods00.00%
▷ Private methods518.52%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin