74% google-ajax-rss-feed

Code Review | Custom Google Ajax Rss Feed

WordPress plugin Custom Google Ajax Rss Feed scored74%from 54 tests.

About plugin

  • Plugin page: google-ajax-rss-feed
  • Plugin version: 2.5.6
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.5.0
  • WordPress version: 6.3.1
  • First release: Jan 23, 2013
  • Latest release: Jan 23, 2013
  • Number of updates: 11
  • Update frequency: every 0.3 days
  • Top authors: anuragRajat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,727 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼1.72MB] [CPU: ▼50.10ms] Passed 4 tests

An overview of server-side resources used by Custom Google Ajax Rss Feed
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.1814.05 ▼26.13
Dashboard /wp-admin2.29 ▼1.0510.81 ▼45.26
Posts /wp-admin/edit.php2.29 ▼1.0611.67 ▼36.52
Add New Post /wp-admin/post-new.php2.29 ▼3.599.97 ▼92.49
Media Library /wp-admin/upload.php2.29 ▼0.949.96 ▼23.05

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Custom Google Ajax Rss Feed
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.28 ▼1.471.89 ▲0.2756.02 ▲18.81
Dashboard /wp-admin2,206 ▲154.83 ▼0.27110.53 ▲9.3941.12 ▼0.21
Posts /wp-admin/edit.php2,092 ▼02.01 ▲0.0235.03 ▼6.1332.17 ▼4.02
Add New Post /wp-admin/post-new.php1,542 ▲2123.08 ▼0.04657.96 ▲44.9154.05 ▲6.07
Media Library /wp-admin/upload.php1,391 ▲34.11 ▼0.09106.90 ▲10.5845.63 ▲2.96

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method google_ajax_rss_class::initFunct() should not be called statically
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/google-ajax-rss-feed/google-ajax-rss-feed.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: rss feed, google ajax feed

google-ajax-rss-feed/google-ajax-rss-feed.php Passed 13 tests

This is the main PHP file of "Custom Google Ajax Rss Feed" version 2.5.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
27 characters long description:
Google Ajax RSS Feed manage

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin118 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP181796
JavaScript15022

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.12
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.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
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png45.01KB18.85KB▼ 58.13%
screenshot-2.png8.46KB3.92KB▼ 53.68%