94% customify-sites

Code Review | Customify Site Library

WordPress plugin Customify Site Library scored 94% from 54 tests.

About plugin

  • Plugin page: customify-sites
  • Plugin version: 0.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.5-5.8.1
  • WordPress version: 5.8.1
  • First release: Apr 12, 2018
  • Latest release: Sep 28, 2021
  • Number of updates: 14
  • Update frequency: every 90.4 days
  • Top authors: pressmaximum (100%)

Code review

54 tests

User reviews

1 review

Install metrics

8,000+ active / 72,641 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.02MB] [CPU: ▼137.81ms] Passed 4 tests

A check of server-side resources used by Customify Site Library
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.83 ▲1.1141.58 ▲18.78
Dashboard /wp-admin4.06 ▲1.0158.95 ▲11.09
Posts /wp-admin/edit.php4.18 ▲1.0753.33 ▲7.91
Add New Post /wp-admin/post-new.php6.42 ▲0.9999.35 ▼578.10
Media Library /wp-admin/upload.php4.01 ▲1.0140.98 ▲7.88
Customify Sites /wp-admin/themes.php?page=customify-sites4.0332.56

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 38 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Customify Site Library
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11216.27 ▲0.348.70 ▲0.4748.90 ▼2.37
Dashboard /wp-admin2,978 ▲475.93 ▼0.02157.98 ▲0.61115.73 ▼2.02
Posts /wp-admin/edit.php2,744 ▲52.68 ▼0.0169.38 ▲3.2989.70 ▼3.63
Add New Post /wp-admin/post-new.php1,675 ▼818.89 ▲0.15371.57 ▼7.53109.44 ▼6.64
Media Library /wp-admin/upload.php1,812 ▲55.01 ▼0.00149.39 ▼0.98125.33 ▲8.80
Customify Sites /wp-admin/themes.php?page=customify-sites1,2232.8366.4688.38

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 9× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'TGM_Plugin_Activation' not found in wp-content/plugins/customify-sites/classess/class-plugin.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/customify-sites/importer/class-wxr-importer.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/customify-sites/classess/class-export.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Customify_Sites_Importer_Logger' not found in wp-content/plugins/customify-sites/importer/class-logger-serversentevents.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/customify-sites/customify-sites.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/customify-sites/templates/modal.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/customify-sites/templates/preview.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/customify-sites/classess/class-tgm.php:2100
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/customify-sites/templates/dashboard.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: demo, theme demos, one click import

customify-sites/customify-sites.php Passed 13 tests

Analyzing the main PHP file in "Customify Site Library" version 0.0.9
45 characters long description:
Import free sites build with Customify 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
Success! There were no dangerous files found in this plugin10,302 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP151,3102,6915,209
JavaScript36079982,651
CSS754541,105
Sass2614822
SVG6123515

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity56.24
▷ Minimum class complexity1.00
▷ Maximum class complexity263.00
Average method complexity4.64
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods252
▷ Static methods124.76%
▷ Public methods18673.81%
▷ Protected methods6224.60%
▷ Private methods41.59%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants333.33%
▷ Class constants666.67%
▷ Public constants6100.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
There were not PNG files found in your plugin