83% google-image-sitemap-feed-with-multisite-support

Code Review | APG Google Image Sitemap Feed

WordPress plugin APG Google Image Sitemap Feed scored83%from 54 tests.

About plugin

  • Plugin page: google-image-site...
  • Plugin version: 2.0.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-6.1
  • WordPress version: 6.3.1
  • First release: Jul 15, 2013
  • Latest release: Jun 25, 2022
  • Number of updates: 55
  • Update frequency: every 63.7 days
  • Top authors: artprojectgroup (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /40,612 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.92ms] Passed 4 tests

Analyzing server-side resources used by APG Google Image Sitemap Feed
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.94 ▼2.53
Dashboard /wp-admin3.36 ▲0.0549.60 ▼3.69
Posts /wp-admin/edit.php3.41 ▲0.0547.11 ▲3.08
Add New Post /wp-admin/post-new.php5.94 ▲0.0582.43 ▼6.60
Media Library /wp-admin/upload.php3.28 ▲0.0537.85 ▲1.13

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for APG Google Image Sitemap Feed
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.28 ▼1.311.53 ▼0.3440.71 ▼8.69
Dashboard /wp-admin2,206 ▲275.84 ▲0.9199.75 ▼18.6540.77 ▼6.37
Posts /wp-admin/edit.php2,086 ▼32.06 ▲0.0136.71 ▲1.6033.68 ▼1.97
Add New Post /wp-admin/post-new.php1,533 ▼123.29 ▲0.15668.28 ▼17.5952.58 ▼0.35
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.0695.49 ▼10.4242.92 ▼4.72

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

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
Good news, no errors were detected

SRP 50% 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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/google-image-sitemap-feed-with-multisite-support/includes/admin/funciones-apg.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_transient() in wp-content/plugins/google-image-sitemap-feed-with-multisite-support/includes/admin/clases/contenido-xml.php:8

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #1 (Captura de pantalla de sitemap-image.xml.)
You can look at the official readme.txt

google-image-sitemap-feed-with-multisite-support/apg-xml-sitemap.php 85% from 13 tests

The principal PHP file in "APG Google Image Sitemap Feed" v. 2.0.2.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("google-image-sitemap-feed-with-multisite-support.php" instead of "apg-xml-sitemap.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 668 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,271 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS1921564
SVG200270
PHP54848229
Markdown1600133
PO File1112675

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin