94% pages-and-posts-in-feed

Code Review | Pages and Posts in Feed

WordPress plugin Pages and Posts in Feed scored 94% from 54 tests.

About plugin

  • Plugin page: pages-and-posts-i...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.3
  • WordPress version: 5.8.1
  • First release: Dec 26, 2011
  • Latest release: Dec 27, 2011
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: Renji (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 2,039 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼140.04ms] Passed 4 tests

A check of server-side resources used by Pages and Posts in Feed
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1234.32 ▲9.63
Dashboard /wp-admin3.06 ▲0.0046.23 ▲0.26
Posts /wp-admin/edit.php3.11 ▲0.0053.55 ▲6.53
Add New Post /wp-admin/post-new.php5.42 ▼0.0193.50 ▼556.96
Media Library /wp-admin/upload.php3.00 ▼0.0128.65 ▼9.97

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Pages and Posts in Feed
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲13115.96 ▲0.479.66 ▲0.3143.75 ▼9.15
Dashboard /wp-admin2,970 ▲365.91 ▼0.14175.34 ▲24.08134.35 ▲23.78
Posts /wp-admin/edit.php2,739 ▼02.70 ▼0.0272.76 ▲7.3996.06 ▲4.01
Add New Post /wp-admin/post-new.php1,504 ▼7718.66 ▲3.66402.69 ▲4.35115.47 ▲9.78
Media Library /wp-admin/upload.php1,807 ▼05.02 ▼0.00162.44 ▲4.15115.77 ▼5.61

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pages-and-posts-in-feed/pages-posts-in-feed.php:17

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
9 plugin tags: rss, remove, exclude, feed, post...

pages-and-posts-in-feed/pages-posts-in-feed.php 85% from 13 tests

The main PHP script in "Pages and Posts in Feed" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pages-and-posts-in-feed.php" instead of "pages-posts-in-feed.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 204 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1388

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.67
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%
Functions1
▷ Named functions1100.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
No PNG files were detected