94% rt-simple-post-and-page-list

Code Review | Royal Simple Posts & Page Listing

WordPress plugin Royal Simple Posts & Page Listing scored 94% from 54 tests.

About plugin

  • Plugin page: rt-simple-post-an...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.2
  • WordPress version: 5.8.1
  • First release: Aug 3, 2013
  • Latest release: Aug 3, 2013
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: royaltechbd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,602 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Royal Simple Posts & Page Listing
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0133.49 ▼2.90
Dashboard /wp-admin3.07 ▲0.0145.51 ▼0.71
Posts /wp-admin/edit.php3.12 ▲0.0143.96 ▲1.60
Add New Post /wp-admin/post-new.php5.43 ▼0.0186.08 ▼570.67
Media Library /wp-admin/upload.php3.01 ▲0.0133.53 ▼0.64

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Royal Simple Posts & Page Listing: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,706 ▲11015.81 ▲0.199.07 ▼6.0549.19 ▼0.90
Dashboard /wp-admin2,967 ▲365.86 ▼0.14139.33 ▼7.8098.91 ▼4.29
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0169.61 ▼0.5082.68 ▼8.69
Add New Post /wp-admin/post-new.php1,500 ▼18318.58 ▲2.31399.41 ▼59.26115.39 ▼20.28
Media Library /wp-admin/upload.php1,807 ▼05.02 ▼0.02154.88 ▲1.83118.18 ▲2.62

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
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/rt-simple-post-and-page-list/rt-simple-post-and-page-list.php:77

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 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === rt-simple-post-and-page-list === )
Please take inspiration from this readme.txt

rt-simple-post-and-page-list/rt-simple-post-and-page-list.php Passed 13 tests

"Royal Simple Posts & Page Listing" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
53 characters long description:
Simply display posts or page listing using shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin77 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1151077

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions7
▷ Named functions7100.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
There are no PNG files in this plugin