84% rss-only-posts

Code Review | RSS only posts

WordPress plugin RSS only posts scored84%from 54 tests.

About plugin

  • Plugin page: rss-only-posts
  • Plugin version: 0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.9
  • WordPress version: 6.3.1
  • First release: Feb 3, 2022
  • Latest release: Feb 3, 2022
  • Number of updates: 2
  • Update frequency: every 4.5 days
  • Top authors: Latz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /242 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.96ms] Passed 4 tests

An overview of server-side resources used by RSS only posts
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.77 ▼0.81
Dashboard /wp-admin3.34 ▼0.0046.26 ▼14.00
Posts /wp-admin/edit.php3.40 ▲0.0446.23 ▲3.43
Add New Post /wp-admin/post-new.php5.93 ▲0.0481.23 ▼18.79
Media Library /wp-admin/upload.php3.27 ▲0.0436.07 ▲1.77

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for RSS only posts
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.63 ▲0.401.80 ▼0.6543.67 ▼1.91
Dashboard /wp-admin2,192 ▲125.55 ▼0.1089.36 ▲4.2834.55 ▼1.51
Posts /wp-admin/edit.php2,125 ▲221.97 ▼0.0234.33 ▼6.1636.04 ▲0.75
Add New Post /wp-admin/post-new.php1,535 ▲923.32 ▲0.24659.54 ▲60.6255.49 ▼8.91
Media Library /wp-admin/upload.php1,400 ▼04.12 ▼0.11111.56 ▲2.7645.50 ▲1.62

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 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/rss-only-posts/rssonlypost.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
2 plugin tags: rss, feed

rss-only-posts/rssonlypost.php 92% from 13 tests

The entry point to "RSS only posts" version 0.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("rss-only-posts.php" instead of "rssonlypost.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected251 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP13425138
JavaScript37063
JSON10026
Markdown19016
CSS1108

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions14
▷ Named functions535.71%
▷ Anonymous functions964.29%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin