77% woostify-sites-library

Code Review | Woostify Sites Library

WordPress plugin Woostify Sites Library scored 77% from 54 tests.

About plugin

  • Plugin page: woostify-sites-li...
  • Plugin version: 1.3.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9.2
  • WordPress version: 5.9.2
  • First release: Jan 21, 2019
  • Latest release: Mar 31, 2022
  • Number of updates: 69
  • Update frequency: every 17.0 days
  • Top authors: duongancol (100%)

Code review

54 tests

User reviews

1 review

Install metrics

9,000+ active / 77,196 total downloads


Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Server-side resources used by Woostify Sites Library
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /5.18 ▲1.6773.76 ▲13.59
Dashboard /wp-admin6.28 ▲2.8757.74 ▲12.02
Posts /wp-admin/edit.php6.46 ▲2.8263.92 ▲11.97
Add New Post /wp-admin/post-new.php9.53 ▲2.56138.31 ▼1,173.51
Media Library /wp-admin/upload.php6.22 ▲2.9361.52 ▲27.45
Woostify Sites Library /wp-admin/themes.php?page=woostify-sites6.3037.86

Server storage [IO: ▲85.61MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
These are issues you should consider
  • Filesystem usage must be lower than 25MB (currently using 85.61MB)
Filesystem: 639 new files
Database: no new tables, 2 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Woostify Sites Library
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /5,035 ▲1,28115.89 ▲0.447.07 ▲0.192.53 ▼0.76
Dashboard /wp-admin4,142 ▲1,2556.44 ▼0.14164.56 ▼10.45184.77 ▼11.91
Posts /wp-admin/edit.php3,924 ▲1,2393.44 ▲0.0172.70 ▼3.04161.28 ▼11.81
Add New Post /wp-admin/post-new.php2,881 ▲1,24218.57 ▼1.92526.20 ▼84.03176.01 ▼19.17
Media Library /wp-admin/upload.php2,920 ▲1,2255.78 ▲0.07171.12 ▼3.98235.57 ▼34.85
Woostify Sites Library /wp-admin/themes.php?page=woostify-sites1,6682.7635.1492.15

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 2 options in the database
    • elementor_disable_color_schemes
    • elementor_disable_typography_schemes

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/woostify-sites-library/assets/images/spinner.php
  • 97× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/woostify-sites-library/vendor/monolog/monolog/src/Monolog/Handler/NullHandler.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/woostify-sites-library/vendor/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/woostify-sites-library/vendor/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/woostify-sites-library/vendor/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/woostify-sites-library/vendor/monolog/monolog/src/Monolog/Handler/LogglyHandler.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/woostify-sites-library/vendor/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Woostify\\CTF7\\add_filter() in wp-content/plugins/woostify-sites-library/includes/ctf7/class-import-export.php:51
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/woostify-sites-library/vendor/monolog/monolog/src/Monolog/Handler/SlackHandler.php:25
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/woostify-sites-library/vendor/monolog/monolog/src/Monolog/Processor/TagProcessor.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/woostify-sites-library/vendor/monolog/monolog/src/Monolog/Processor/UidProcessor.php:21

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)
Everything seems fine on the user side


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: theme demos, demo, one click import

woostify-sites-library/woostify-sites.php 92% from 13 tests

The main PHP file in "Woostify Sites Library" ver. 1.3.9 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woostify-sites-library.php" instead of "woostify-sites.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin272,089 lines of code in 221 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity17.52
▷ Minimum class complexity1.00
▷ Maximum class complexity290.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
▷ Abstract classes75.34%
▷ Concrete classes12494.66%
▷ Final classes10.81%
▷ Static methods766.73%
▷ Public methods76567.76%
▷ Protected methods23620.90%
▷ Private methods12811.34%
▷ Named functions2150.00%
▷ Anonymous functions2150.00%
▷ Global constants69.23%
▷ Class constants5990.77%
▷ Public constants59100.00%

Plugin size 0% from 2 tests

Image compression 0% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
17 PNG files occupy 9.14MB with 7.90MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) demos/demo-13/demo-13.png163.20KB0.00KB▼ 100.00%
assets/images/logo-icon.png3.79KB1.37KB▼ 64.02%
demos/demo-6/demo-6.png251.90KB81.05KB▼ 67.82%
(invalid) demos/demo-17/demo-17.png270.61KB0.00KB▼ 100.00%
(invalid) demos/demo-14/demo-14.png23.26KB0.00KB▼ 100.00%