84% suffice-toolkit

Code Review | Suffice Toolkit

WordPress plugin Suffice Toolkit scored84%from 54 tests.

About plugin

  • Plugin page: suffice-toolkit
  • Plugin version: 1.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Jun 20, 2017
  • Latest release: Dec 20, 2022
  • Number of updates: 12
  • Update frequency: every 170.2 days
  • Top authors: ThemeGrill (58.33%)themegrilldev (50%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active /55,799 total downloads

Benchmarks

Plugin footprint 83% 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: ▲1.31MB] [CPU: ▲0.99ms] Passed 4 tests

An overview of server-side resources used by Suffice Toolkit
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.68 ▲1.2246.01 ▲8.20
Dashboard /wp-admin4.65 ▲1.3458.35 ▲12.05
Posts /wp-admin/edit.php4.71 ▲1.3552.31 ▼0.46
Add New Post /wp-admin/post-new.php7.25 ▲1.3785.17 ▼15.73
Media Library /wp-admin/upload.php4.56 ▲1.3344.88 ▲11.94
Categories /wp-admin/edit-tags.php?taxonomy=portfolio_cat&post_type=portfolio4.5638.65
Add Project /wp-admin/post-new.php?post_type=portfolio4.7260.26
All Projects /wp-admin/edit.php?post_type=portfolio4.6242.72
Tags /wp-admin/edit-tags.php?taxonomy=portfolio_tag&post_type=portfolio4.5638.22

Server storage [IO: ▲2.72MB] [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 162 new files
Database: no new tables, 22 new options
New WordPress options
widget_themegrill_suffice_logo
widget_theysaidso_widget
widget_themegrill_suffice_button
widget_themegrill_suffice_counter
widget_themegrill_suffice_cta
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_themegrill_suffice_blog
widget_themegrill_suffice_slider
...

Browser metrics Passed 4 tests

A check of browser resources used by Suffice Toolkit
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲7414.35 ▲0.061.77 ▲0.2644.50 ▲2.43
Dashboard /wp-admin2,238 ▲585.64 ▲0.0385.29 ▲0.6241.57 ▼3.77
Posts /wp-admin/edit.php2,143 ▲432.02 ▲0.0733.27 ▼8.0035.32 ▼0.59
Add New Post /wp-admin/post-new.php1,563 ▲2623.47 ▲0.39679.94 ▲81.4263.12 ▲4.80
Media Library /wp-admin/upload.php1,443 ▲434.17 ▼0.0193.77 ▼4.7641.27 ▼7.48
Categories /wp-admin/edit-tags.php?taxonomy=portfolio_cat&post_type=portfolio1,3142.1227.3630.02
Add Project /wp-admin/post-new.php?post_type=portfolio2,8747.96189.9974.32
All Projects /wp-admin/edit.php?post_type=portfolio1,1452.2039.2630.38
Tags /wp-admin/edit-tags.php?taxonomy=portfolio_tag&post_type=portfolio1,2862.1226.8928.89

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 22 options
    • widget_themegrill_suffice_iconbox
    • widget_themegrill_suffice_slider
    • widget_themegrill_suffice_portfolio
    • widget_themegrill_suffice_blog
    • widget_themegrill_suffice_button
    • widget_recent-comments
    • suffice_toolkit_admin_notices
    • widget_themegrill_suffice_team
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/suffice-toolkit/includes/libraries/wp-background-process.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/suffice-toolkit/includes/abstracts/abstract-suffice-widget.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)
Everything seems fine on the user side

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
4 plugin tags: suffice, themegrill, toolkit, theme

suffice-toolkit/suffice-toolkit.php Passed 13 tests

The principal PHP file in "Suffice Toolkit" v. 1.0.9 is loaded by WordPress automatically on each request
72 characters long description:
Suffice Toolkit is a companion for Suffice WordPress theme by ThemeGrill

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected18,739 lines of code in 92 files:
LanguageFilesBlank linesComment linesLines of code
PHP618441,9345,895
JavaScript131,2364804,965
JSON3003,535
Sass819403,518
SVG100685
XML1255136
CSS5035

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity8.91
▷ Minimum class complexity1.00
▷ Maximum class complexity79.00
Average method complexity2.49
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes32
▷ Abstract classes39.38%
▷ Concrete classes2990.62%
▷ Final classes13.45%
Methods172
▷ Static methods4325.00%
▷ Public methods13377.33%
▷ Protected methods2112.21%
▷ Private methods1810.47%
Functions35
▷ Named functions35100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
60 PNG files occupy 0.99MB with 0.78MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/woocommerce-clean.png31.81KB0.37KB▼ 98.85%
assets/images/portfolio-hover.png15.60KB0.27KB▼ 98.24%
assets/images/title-magazine-style.png15.58KB0.24KB▼ 98.43%
assets/images/slidernavagationbutton-flat.png15.63KB0.29KB▼ 98.13%
assets/images/title-cursive.png0.25KB0.26KB0.00%