10% working-news-sitemap-generator-for-google-news-2014

Code Review | Working News Sitemap Generator For Google News (2015)

WordPress plugin Working News Sitemap Generator For Google News (2015) scored10%from 54 tests.

About plugin

  • Plugin page: working-news-site...
  • Plugin version: v1.03...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Nov 5, 2014
  • Latest release: Jan 30, 2015
  • Number of updates: 4
  • Update frequency: every 21.5 days
  • Top authors: sOliver (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /3,056 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Parse error in wp-content/plugins/working-news-sitemap-generator-for-google-news-2014/sitemapgen.php+409
    syntax error, unexpected '}', expecting end of file

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

Server-side resources used by Working News Sitemap Generator For Google News (2015)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.26 ▼1.47
Dashboard /wp-admin3.31 ▼0.0444.42 ▼15.43
Posts /wp-admin/edit.php3.36 ▲0.0046.98 ▲1.22
Add New Post /wp-admin/post-new.php5.89 ▲0.0077.53 ▼34.63
Media Library /wp-admin/upload.php3.23 ▲0.0034.67 ▲3.76

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Working News Sitemap Generator For Google News (2015)
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.051.69 ▲0.1440.83 ▲1.12
Dashboard /wp-admin2,209 ▲214.86 ▼0.03106.81 ▼12.3241.75 ▼5.58
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0444.45 ▲8.3335.14 ▲1.29
Add New Post /wp-admin/post-new.php1,542 ▲1418.26 ▼0.04603.30 ▼14.0059.03 ▲10.15
Media Library /wp-admin/upload.php1,388 ▲64.20 ▲0.0294.07 ▼3.6641.30 ▼3.13

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Parse error
      syntax error, unexpected '}', expecting end of file in wp-content/plugins/working-news-sitemap-generator-for-google-news-2014/sitemapgen.php on line 409

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (Add Publication Name and Language Manually)
You can look at the official readme.txt

working-news-sitemap-generator-for-google-news-2014/sitemapgen.php 85% from 13 tests

The entry point to "Working News Sitemap Generator For Google News (2015)" version v1.03... is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "v1.03...")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("working-news-sitemap-generator-for-google-news-2014.php" instead of "sitemapgen.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin253 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17581253

PHP code Passed 2 tests

This is a short overview 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.45
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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png19.73KB10.89KB▼ 44.81%