83% suevafree-essential-kit

Code Review | SuevaFree Essential Kit

WordPress plugin SuevaFree Essential Kit scored83%from 54 tests.

About plugin

  • Plugin page: suevafree-essenti...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 16, 2016
  • Latest release: Sep 23, 2023
  • Number of updates: 23
  • Update frequency: every 107.3 days
  • Top authors: alexvtn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /14,125 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.45MB] [CPU: ▼0.72ms] Passed 4 tests

This is a short check of server-side resources used by SuevaFree Essential Kit
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.25 ▲0.5248.48 ▲0.44
Dashboard /wp-admin4.07 ▲0.5052.28 ▼1.59
Posts /wp-admin/edit.php4.12 ▲0.4453.48 ▼1.22
Add New Post /wp-admin/post-new.php6.58 ▲0.4497.30 ▼0.52
Media Library /wp-admin/upload.php3.93 ▲0.4447.48 ▲6.80
Testimonial /wp-admin/edit.php?post_type=testimonial4.0346.89
Service /wp-admin/edit.php?post_type=service4.0359.66
Add new /wp-admin/post-new.php?post_type=service4.1047.80
Team /wp-admin/edit.php?post_type=team4.0341.84
Add new /wp-admin/post-new.php?post_type=team4.1053.22
Add new /wp-admin/post-new.php?post_type=testimonial4.1056.10

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 13 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_suevafree_cta_widget
widget_suevafree_team_widget
theysaidso_admin_options
widget_recent-comments
widget_suevafree_testimonial_widget
db_upgraded
can_compress_scripts
widget_suevafree_services_widget
...

Browser metrics Passed 4 tests

An overview of browser requirements for SuevaFree Essential Kit
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,973 ▲18713.95 ▼0.7212.11 ▲9.8444.60 ▲1.30
Dashboard /wp-admin2,279 ▲1055.67 ▼0.0286.98 ▼11.7540.13 ▼2.98
Posts /wp-admin/edit.php2,181 ▲782.05 ▲0.0549.01 ▲11.5638.31 ▲3.38
Add New Post /wp-admin/post-new.php1,595 ▲6917.53 ▼0.14672.25 ▼14.8454.11 ▼6.74
Media Library /wp-admin/upload.php1,478 ▲784.19 ▼0.14103.14 ▼6.7445.97 ▼1.36
Testimonial /wp-admin/edit.php?post_type=testimonial1,1481.9835.2230.78
Service /wp-admin/edit.php?post_type=service1,1451.9831.0931.10
Add new /wp-admin/post-new.php?post_type=service2,2417.59168.6463.88
Team /wp-admin/edit.php?post_type=team1,1272.1132.5730.44
Add new /wp-admin/post-new.php?post_type=team2,2487.52172.1556.56
Add new /wp-admin/post-new.php?post_type=testimonial2,2357.54162.6154.61

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 13 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_suevafree_news_widget
    • widget_suevafree_services_widget
    • widget_suevafree_team_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_suevafree_count_widget
    • widget_suevafree_cta_widget
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/suevafree-essential-kit/core/widgets/suevafree_counter_widget.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'suevafree_cpt' not found in wp-content/plugins/suevafree-essential-kit/core/cpt/service.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/suevafree-essential-kit/core/widgets/suevafree_testimonial_widget.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/suevafree-essential-kit/core/widgets/suevafree_news_widget.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'suevafree_cpt' not found in wp-content/plugins/suevafree-essential-kit/core/cpt/team.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/suevafree-essential-kit/functions.php:211
    • > PHP Fatal error
      Uncaught Error: Class 'suevafree_cpt' not found in wp-content/plugins/suevafree-essential-kit/core/cpt/testimonial.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/suevafree-essential-kit/functions.php:211
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/suevafree-essential-kit/core/widgets/suevafree_contactform_widget.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/suevafree-essential-kit/core/widgets/suevafree_cta_widget.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Add an image for screenshot #1 (One Page layout example.)
You can take inspiration from this readme.txt

suevafree-essential-kit/init.php 92% from 13 tests

The entry point to "SuevaFree Essential Kit" version 1.1.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("suevafree-essential-kit.php" instead of "init.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
Good job! No executable or dangerous file extensions detected2,758 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP141,0691431,649
CSS313334739
JavaScript512244217
PO File18541,913153

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity11.11
▷ Minimum class complexity2.00
▷ Maximum class complexity22.00
Average method complexity3.39
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods38
▷ Static methods00.00%
▷ Public methods38100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icons/zoom.png1.01KB0.23KB▼ 77.09%
assets/images/icons/toggle-hover.png0.92KB0.11KB▼ 88.55%
assets/images/icons/toggle.png0.98KB0.11KB▼ 88.49%
screenshot-1.png55.08KB22.25KB▼ 59.61%