84% rps-blog-info

Code Review | RPS Blog Info

WordPress plugin RPS Blog Info scored84%from 54 tests.

About plugin

  • Plugin page: rps-blog-info
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 28, 2012
  • Latest release: May 26, 2023
  • Number of updates: 28
  • Update frequency: every 146.8 days
  • Top authors: redpixelstudios (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /5,647 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

A check of server-side resources used by RPS Blog Info
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.48 ▼2.24
Dashboard /wp-admin3.32 ▼0.0244.05 ▼17.01
Posts /wp-admin/edit.php3.37 ▲0.0247.68 ▲0.40
Add New Post /wp-admin/post-new.php5.90 ▲0.0280.83 ▼10.31
Media Library /wp-admin/upload.php3.25 ▲0.0234.06 ▲2.44

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for RPS Blog Info
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲13513.23 ▼1.426.21 ▲4.3343.38 ▲0.68
Dashboard /wp-admin2,234 ▲454.85 ▼0.04105.72 ▼17.0237.69 ▼9.42
Posts /wp-admin/edit.php2,117 ▲282.02 ▲0.0135.57 ▼1.5131.51 ▼0.62
Add New Post /wp-admin/post-new.php1,549 ▲3523.38 ▲5.83651.12 ▼22.9257.84 ▲1.51
Media Library /wp-admin/upload.php1,416 ▲254.25 ▲0.1093.55 ▼4.7440.78 ▼3.40

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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_action() in wp-content/plugins/rps-blog-info/rps-blog-info.php:100

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: You are using too many tags: 27 tag instead of maximum 10
  • Screenshots: These screenshots need descriptions #2, #3, #4 in rps-blog-info/assets to your readme.txt
You can look at the official readme.txt

rps-blog-info/rps-blog-info.php Passed 13 tests

The main file in "RPS Blog Info" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
120 characters long description:
Adds menus to the WordPress Toolbar to display blog, page, post and attachment IDs along with other related information.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected224 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15277209
CSS15015

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity47.00
▷ Minimum class complexity47.00
▷ Maximum class complexity47.00
Average method complexity5.18
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods218.18%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin