83% gothamazon

Code Review | GothAmazon

WordPress plugin GothAmazonscored83%from 54 tests.

About plugin

  • Plugin page: gothamazon
  • Plugin version: 3.1.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 8, 2020
  • Latest release: Nov 22, 2023
  • Number of updates: 117
  • Update frequency: every 10.3 days
  • Top authors: gothamdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /4,176 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▲518.69ms] 75% from 4 tests

Analyzing server-side resources used by GothAmazon
The following require your attention
  • Extra CPU: Extra CPU usage must be kept under 200.00ms (currently 518.69ms on /wp-admin/upload.php)
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.04339.06 ▲302.37
Dashboard /wp-admin3.46 ▲0.11658.81 ▲595.93
Posts /wp-admin/edit.php3.51 ▲0.15636.06 ▲586.35
Add New Post /wp-admin/post-new.php6.00 ▲0.11675.52 ▲590.10
Media Library /wp-admin/upload.php3.32 ▲0.09691.81 ▲656.91

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 165 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for GothAmazon
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,934 ▲17214.38 ▲0.131.71 ▼0.1741.56 ▲3.90
Dashboard /wp-admin2,349 ▲1716.00 ▲0.2896.60 ▼18.9439.27 ▼6.05
Posts /wp-admin/edit.php2,256 ▲1562.26 ▲0.3135.30 ▼7.3533.56 ▼4.11
Add New Post /wp-admin/post-new.php1,557 ▲3121.02 ▼2.38587.30 ▼53.7427.19 ▼26.21
Media Library /wp-admin/upload.php1,554 ▲1574.39 ▲0.22109.07 ▲5.9743.26 ▼2.73

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% 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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 50× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: domainname in wp-content/plugins/gothamazon/eco.php on line 36
    • > PHP Notice
      Undefined variable: parachute in wp-content/plugins/gothamazon/eco_asin.php on line 92
    • > PHP Notice
      Undefined variable: link in wp-content/plugins/gothamazon/eco_asin.php on line 198
    • > PHP Notice
      Undefined index: HTTP_ACCEPT in wp-content/plugins/gothamazon/inc/vmob.php on line 9
    • > PHP Notice
      Undefined variable: parachute in wp-content/plugins/gothamazon/eco.php on line 134
    • > PHP Notice
      Undefined variable: prixmin in wp-content/plugins/gothamazon/eco.php on line 36
    • > PHP Notice
      Undefined variable: categoryprecise in wp-content/plugins/gothamazon/eco.php on line 36
    • > PHP Notice
      Undefined variable: domainname in wp-content/plugins/gothamazon/eco_asin.php on line 36
    • > PHP Notice
      Undefined variable: nkw_s in wp-content/plugins/gothamazon/eco.php on line 36
    • > PHP Notice
      Undefined variable: zipq in wp-content/plugins/gothamazon/eco.php on line 44

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === GothAmazon=== )
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (This screen shot description corresponds to screenshot-1.png. Note that the screenshot is taken from the directory that contains the stable readme.txt.), #2 (This screen shot description corresponds to screenshot-2.png. Note that the screenshot is taken from the directory that contains the stable readme.txt.), #3 (This screen shot description corresponds to screenshot-3.png. Note that the screenshot is taken from the directory that contains the stable readme.txt.), #4 (This screen shot description corresponds to screenshot-4.png. Note that the screenshot is taken from the directory that contains the stable readme.txt.), #5 (This screen shot description corresponds to screenshot-5.png. Note that the screenshot is taken from the directory that contains the stable readme.txt.), #6 (This screen shot description corresponds to screenshot-6.png. Note that the screenshot is taken from the directory that contains the stable readme.txt.)
You can take inspiration from this readme.txt

gothamazon/gothamzone.php 85% from 13 tests

The main PHP script in "GothAmazon" version 3.1.6 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gothamazon.php" instead of "gothamzone.php")
  • Requires PHP: The required version number must match the one declared in readme.txt ("5.2.4" instead of "7.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected9,203 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP182,4483766,240
JavaScript682222,955
SVG2008

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity60.50
▷ Minimum class complexity3.00
▷ Maximum class complexity109.00
Average method complexity9.50
▷ Minimum method complexity1.00
▷ Maximum method complexity76.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods2071.43%
▷ Protected methods00.00%
▷ Private methods828.57%
Functions46
▷ Named functions4291.30%
▷ Anonymous functions48.70%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
133 PNG files occupy 0.57MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/karl-lagerfeld-fr.png4.72KB2.72KB▼ 42.46%
img/izac.png3.99KB2.15KB▼ 46.10%
img/vichy-fr.png4.78KB2.63KB▼ 44.93%
img/wiggle-fr.png4.32KB2.42KB▼ 44.04%
img/ama_icon.png4.34KB1.83KB▼ 57.78%