78% wp-giosg

Code Review | WP Giosg

WordPress plugin WP Giosg scored78%from 54 tests.

About plugin

  • Plugin page: wp-giosg
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Jul 12, 2018
  • Latest release: Jul 27, 2022
  • Number of updates: 30
  • Update frequency: every 49.3 days
  • Top authors: cyclonecode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,560 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.20MB] [CPU: ▼7.39ms] Passed 4 tests

Analyzing server-side resources used by WP Giosg
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1942.64 ▲3.48
Dashboard /wp-admin3.55 ▲0.2545.72 ▼3.99
Posts /wp-admin/edit.php3.60 ▲0.2447.60 ▼1.54
Add New Post /wp-admin/post-new.php6.07 ▲0.1883.35 ▼25.29
Media Library /wp-admin/upload.php3.41 ▲0.1835.91 ▲1.27
WP Giosg Settings /wp-admin/options-general.php?page=wp-giosg3.3829.97

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 135 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
wp_giosg_settings
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

WP Giosg: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3314.46 ▲0.181.76 ▲0.0243.77 ▲2.42
Dashboard /wp-admin2,210 ▲194.83 ▼0.08108.61 ▲5.9740.21 ▼1.63
Posts /wp-admin/edit.php2,093 ▲41.98 ▼0.0240.23 ▼0.8436.15 ▲1.46
Add New Post /wp-admin/post-new.php1,536 ▲1523.18 ▼0.27644.23 ▲23.4862.10 ▲11.42
Media Library /wp-admin/upload.php1,389 ▲44.25 ▲0.01101.08 ▲2.2445.08 ▲2.22
WP Giosg Settings /wp-admin/options-general.php?page=wp-giosg8992.0327.1624.27

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

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 perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-giosg/src/templates/script.php
  • 107× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-giosg/vendor/composer/installers/src/Composer/Installers/BonefishInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-giosg/vendor/composer/installers/src/Composer/Installers/ElggInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-giosg/vendor/composer/installers/src/Composer/Installers/ZikulaInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-giosg/vendor/composer/installers/src/Composer/Installers/PhpBBInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-giosg/vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-giosg/vendor/composer/installers/src/Composer/Installers/YawikInstaller.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-giosg/vendor/composer/installers/src/Composer/Installers/MiaoxingInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-giosg/vendor/composer/installers/src/Composer/Installers/UserFrostingInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-giosg/vendor/composer/installers/src/Composer/Installers/MODXEvoInstaller.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-giosg/vendor/composer/installers/src/Composer/Installers/CroogoInstaller.php:4

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 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: customer support, live chat, giosg, chat, woocommerce...

wp-giosg/bootstrap.php 85% from 13 tests

The entry point to "WP Giosg" version 1.0.8 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-giosg.php" instead of "bootstrap.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin3,932 lines of code in 127 files:
LanguageFilesBlank linesComment linesLines of code
PHP1205821,1353,381
JSON300341
YAML3313123
JavaScript10087

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.28
Average class complexity3.04
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes109
▷ Abstract classes10.92%
▷ Concrete classes10899.08%
▷ Final classes00.00%
Methods191
▷ Static methods2010.47%
▷ Public methods14173.82%
▷ Protected methods3518.32%
▷ Private methods157.85%
Functions12
▷ Named functions325.00%
▷ Anonymous functions975.00%
Constants10
▷ Global constants00.00%
▷ Class constants10100.00%
▷ Public constants10100.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
2 compressed PNG files occupy 0.02MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/assets/icon-256x256.png17.84KB18.72KB0.00%
src/assets/icon-128x128.png7.54KB8.40KB0.00%