79% customizr-addons

Code Review | Customizr Addons

WordPress plugin Customizr Addons scored79%from 54 tests.

About plugin

  • Plugin page: customizr-addons
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.8
  • WordPress version: 6.3.1
  • First release: Sep 16, 2016
  • Latest release: Jul 20, 2021
  • Number of updates: 6
  • Update frequency: every 294.0 days
  • Top authors: nikeo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,368 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.14ms] Passed 4 tests

An overview of server-side resources used by Customizr Addons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.77 ▼3.72
Dashboard /wp-admin3.33 ▼0.0244.41 ▼16.19
Posts /wp-admin/edit.php3.45 ▲0.0946.21 ▲2.82
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.06 ▲1.97
Media Library /wp-admin/upload.php3.25 ▲0.0236.59 ▲1.39

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Customizr Addons: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲7413.57 ▼0.801.71 ▼0.5038.68 ▼11.48
Dashboard /wp-admin2,212 ▲215.88 ▼0.0098.83 ▼15.3739.59 ▼3.10
Posts /wp-admin/edit.php2,095 ▲62.05 ▼0.0836.32 ▼0.1434.36 ▼1.26
Add New Post /wp-admin/post-new.php1,529 ▼423.05 ▼0.07646.12 ▼12.0759.23 ▼1.70
Media Library /wp-admin/upload.php1,391 ▼04.23 ▲0.0994.03 ▼8.7341.46 ▼5.57

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/customizr-addons/assets/front/js/sharrre.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/customizr-addons/customizr-addons.php:148
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/customizr-addons/inc/sharrre/sharrre-template.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/customizr-addons/inc/sharrre-template.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
2 plugin tags: customizr, customizr theme

customizr-addons/customizr-addons.php Passed 13 tests

Analyzing the main PHP file in "Customizr Addons" version 1.1.2
60 characters long description:
Lightweight addons plugin for the Customizr WordPress theme.

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
No dangerous file extensions were detected8,099 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JSON1004,055
SVG1002,671
PHP6119140700
JavaScript35154565
PO File1212172
CSS211236

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity10.33
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity2.27
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods22
▷ Static methods14.55%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin