84% wp-iframe-geo-style-for-amazon-affiliates

Code Review | WP Iframe Geo Style for Amazon affiliates

WordPress plugin WP Iframe Geo Style for Amazon affiliates scored 84% from 54 tests.

About plugin

  • Plugin page: wp-iframe-geo-sty...
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3.2
  • WordPress version: 6.3.1
  • First release: Mar 27, 2020
  • Latest release: Apr 12, 2020
  • Number of updates: 4
  • Update frequency: every 4.0 days
  • Top authors: ektorcaba (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 495 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.70ms] Passed 4 tests

A check of server-side resources used by WP Iframe Geo Style for Amazon affiliates
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.81 ▼10.49
Dashboard /wp-admin3.31 ▲0.0148.41 ▼2.60
Posts /wp-admin/edit.php3.36 ▲0.0144.81 ▼4.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.34 ▼5.50
Media Library /wp-admin/upload.php3.24 ▲0.0137.41 ▲4.15

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for WP Iframe Geo Style for Amazon affiliates
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.19 ▼1.186.85 ▲4.8647.39 ▲7.99
Dashboard /wp-admin2,206 ▲185.82 ▼0.0897.51 ▼1.7739.09 ▼4.12
Posts /wp-admin/edit.php2,086 ▼02.03 ▼0.0136.65 ▲2.2631.99 ▼1.62
Add New Post /wp-admin/post-new.php1,533 ▲523.17 ▲4.95676.32 ▲23.8653.54 ▲5.20
Media Library /wp-admin/upload.php1,388 ▼34.22 ▼0.0295.11 ▼1.9545.28 ▲1.33

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-iframe-geo-style-for-amazon-affiliates/assets/js/ac.js.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === wp-iframe-geo-style-for-amazon-affiliates === )
Please take inspiration from this readme.txt

wp-iframe-geo-style-for-amazon-affiliates/index.php 92% from 13 tests

The primary PHP file in "WP Iframe Geo Style for Amazon affiliates" version 1.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-iframe-geo-style-for-amazon-affiliates.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,054 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS115514524
PHP217410302
JavaScript1555228

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.36
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon.png7.03KB3.50KB▼ 50.24%