93% google-mobile-sitemap-feed-with-multisite-support

Code Review | Google Mobile Sitemap Feed With Multisite Support

WordPress plugin Google Mobile Sitemap Feed With Multisite Support scored 93% from 54 tests.

About plugin

  • Plugin page: google-mobile-sit...
  • Plugin version: 1.0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-4.6
  • WordPress version: 5.8.1
  • First release: Jul 15, 2013
  • Latest release: Dec 13, 2017
  • Number of updates: 37
  • Update frequency: every 43.6 days
  • Top authors: artprojectgroup (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active / 6,982 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Analyzing server-side resources used by Google Mobile Sitemap Feed With Multisite Support
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0224.34 ▲0.65
Dashboard /wp-admin3.07 ▲0.0130.17 ▼9.87
Posts /wp-admin/edit.php3.13 ▲0.0231.24 ▼0.12
Add New Post /wp-admin/post-new.php5.43 ▼0.0080.79 ▼693.87
Media Library /wp-admin/upload.php3.02 ▲0.0121.68 ▼0.28

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 1 new option
New WordPress options
gn-sitemap-mobile-feed-mu-version

Browser metrics Passed 4 tests

This is an overview of browser requirements for Google Mobile Sitemap Feed With Multisite Support
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,668 ▲1715.98 ▲0.328.17 ▲2.5572.38 ▼6.42
Dashboard /wp-admin2,932 ▲376.11 ▼0.04115.28 ▼18.00164.41 ▼10.17
Posts /wp-admin/edit.php2,739 ▼13.24 ▲0.0161.11 ▼3.29136.49 ▼2.88
Add New Post /wp-admin/post-new.php3,745 ▼6219.05 ▲0.59424.43 ▼38.60165.98 ▲1.22
Media Library /wp-admin/upload.php1,754 ▲25.48 ▼0.06146.37 ▲0.49183.62 ▼0.23

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function status_header() in wp-content/plugins/google-mobile-sitemap-feed-with-multisite-support/includes/feed-sitemap-mobile.php:8

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 issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Screenshots: Add an image for screenshot #1 (Captura de pantalla de sitemap-mobile.xml.)
The official readme.txt is a good inspiration

google-mobile-sitemap-feed-with-multisite-support/xml-sitemap.php 77% from 13 tests

"Google Mobile Sitemap Feed With Multisite Support" version 1.0.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("google-mobile-sitemap-feed-with-multisite-support.php" instead of "xml-sitemap.php")
  • Description: The description should be shorter than 140 characters (currently 666 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,228 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS1921564
SVG200270
PHP34664206
Markdown1500111
PO File1121377

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods9100.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin