78% specialist-in-websites

Code Review | SIW TO

WordPress plugin SIW TO scored78%from 54 tests.

About plugin

  • Plugin page: specialist-in-web...
  • Plugin version: 2.0.4.1
  • PHP compatiblity: 7.1.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.6
  • WordPress version: 6.3.1
  • First release: Jul 26, 2018
  • Latest release: Oct 14, 2021
  • Number of updates: 153
  • Update frequency: every 7.7 days
  • Top authors: marthijnsiw (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /5,869 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.29MB] [CPU: ▲4.06ms] Passed 4 tests

Server-side resources used by SIW TO
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2645.96 ▲7.11
Dashboard /wp-admin3.55 ▲0.2549.78 ▼0.02
Posts /wp-admin/edit.php3.74 ▲0.3958.52 ▲9.85
Add New Post /wp-admin/post-new.php6.23 ▲0.3492.55 ▲0.37
Media Library /wp-admin/upload.php3.55 ▲0.3343.51 ▲8.78
GTag Manager (AVG) /wp-admin/admin.php?page=siw_analytics3.5746.11
SIW TO /wp-admin/admin.php?page=siw-to3.5855.95

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 195 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
toggle-avg-ip-msg
db_upgraded
siwto_no_index_notice
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
siwto_wpjson_secure

Browser metrics Passed 4 tests

An overview of browser requirements for SIW TO
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,984 ▼75114.01 ▼0.381.87 ▼0.0627.46 ▼20.44
Dashboard /wp-admin1,376 ▼8125.30 ▼0.5977.65 ▼30.4173.13 ▲31.36
Posts /wp-admin/edit.php2,135 ▲462.22 ▲0.2036.26 ▼5.9738.14 ▲4.12
Add New Post /wp-admin/post-new.php1,550 ▲3122.13 ▼0.97753.59 ▲63.0737.64 ▼16.47
Media Library /wp-admin/upload.php1,431 ▲434.31 ▲0.15102.88 ▼8.9347.29 ▲2.49
GTag Manager (AVG) /wp-admin/admin.php?page=siw_analytics1,3395.38101.91101.38
SIW TO /wp-admin/admin.php?page=siw-to1,1955.0789.1886.61

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 9 options in the database
    • siwto_wpjson_secure
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • toggle-avg-ip-msg
    • siwto_no_index_notice
    • widget_theysaidso_widget
    • theysaidso_admin_options

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

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'SIW_TO' not found in wp-content/plugins/specialist-in-websites/includes/page-checklist.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/specialist-in-websites/includes/avg/siwavg.core.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/specialist-in-websites/includes/welcome_msg.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'SIW_TO' not found in wp-content/plugins/specialist-in-websites/includes/page-toggl.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_transient() in wp-content/plugins/specialist-in-websites/includes/dashboard-message-admin.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/specialist-in-websites/includes/variables-style.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/specialist-in-websites/includes/avg/siwavg.utils.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/specialist-in-websites/includes/page-avg.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/specialist-in-websites/includes/page-schema.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/specialist-in-websites/includes/dashboard-message.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=siw_analytics
    • > Network (severe)
    wp-content/plugins/assets/images/tag-manager-screenshot.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Donate link: Invalid url: "paypal.me/marthijnsiw"
Please take inspiration from this readme.txt

specialist-in-websites/plugin.php 92% from 13 tests

The primary PHP file in "SIW TO" version 2.0.4.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("specialist-in-websites.php" instead of "plugin.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 detected37,043 lines of code in 149 files:
LanguageFilesBlank linesComment linesLines of code
JSON40026,803
Sass905714314,484
PHP212835412,389
CSS82095312,361
JavaScript205380686
SVG504265
Markdown15055

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity48.00
▷ Minimum class complexity1.00
▷ Maximum class complexity143.00
Average method complexity3.92
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods70
▷ Static methods1825.71%
▷ Public methods6795.71%
▷ Protected methods00.00%
▷ Private methods34.29%
Functions39
▷ Named functions820.51%
▷ Anonymous functions3179.49%
Constants0
▷ Global constants00.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
9 PNG files occupy 0.11MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/siw-logo-white.png33.19KB17.92KB▼ 46.03%
assets/images/logo-i.png1.80KB0.60KB▼ 66.65%
assets/images/santa-hat.png5.20KB5.18KB▼ 0.54%
assets/images/cropped-zwart_logo-270x270.png6.00KB6.01KB0.00%
assets/images/siw-dashicon.png0.97KB0.16KB▼ 83.82%