84% rkp-awesome-placeholder

Code Review | RKP Awesome Placeholder

WordPress plugin RKP Awesome Placeholder scored84%from 54 tests.

About plugin

  • Plugin page: rkp-awesome-place...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Dec 17, 2014
  • Latest release: Dec 17, 2014
  • Number of updates: 15
  • Update frequency: every 0.1 days
  • Top authors: rkpolin (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /651 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.01MB] [CPU: ▼1.70ms] Passed 4 tests

This is a short check of server-side resources used by RKP Awesome Placeholder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.84 ▼4.04
Dashboard /wp-admin3.31 ▲0.0154.37 ▲2.83
Posts /wp-admin/edit.php3.37 ▲0.0149.96 ▼5.44
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.26 ▼0.16
Media Library /wp-admin/upload.php3.24 ▲0.0039.36 ▲7.80

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for RKP Awesome Placeholder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,898 ▲11213.39 ▼1.227.86 ▲5.8538.35 ▼10.80
Dashboard /wp-admin2,198 ▲215.57 ▼0.0990.49 ▲2.3540.53 ▲0.45
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0340.01 ▲2.4435.01 ▼1.72
Add New Post /wp-admin/post-new.php1,526 ▼023.24 ▲0.48665.92 ▲44.5853.63 ▼5.08
Media Library /wp-admin/upload.php1,403 ▲34.21 ▼0.04103.09 ▼10.3449.65 ▼5.59

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 detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Please 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/rkp-awesome-placeholder/plugins-main.php:15

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === rkp-awesome-placeholder === )
The official readme.txt might help

rkp-awesome-placeholder/plugins-main.php 92% from 13 tests

"RKP Awesome Placeholder" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("rkp-awesome-placeholder.php" instead of "plugins-main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected31 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1111030
JavaScript1161

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png35.86KB15.33KB▼ 57.23%