73% rs-coming-soon

Code Review | RS Coming Soon

WordPress plugin RS Coming Soon scored73%from 54 tests.

About plugin

  • Plugin page: rs-coming-soon
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.0
  • WordPress version: 6.3.1
  • First release: Apr 22, 2016
  • Latest release: Nov 12, 2016
  • Number of updates: 10
  • Update frequency: every 20.4 days
  • Top authors: wpeffects (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /640 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.56MB] [CPU: ▲3.43ms] Passed 4 tests

Server-side resources used by RS Coming Soon
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.02 ▲0.5648.43 ▲7.38
Dashboard /wp-admin3.90 ▲0.5555.66 ▼6.63
Posts /wp-admin/edit.php3.94 ▲0.5858.84 ▲12.63
Add New Post /wp-admin/post-new.php6.47 ▲0.5898.81 ▲5.31
Media Library /wp-admin/upload.php3.79 ▲0.5642.53 ▲7.65

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 114 new files
Database: 1 new table, 7 new options
New tables
wp_rscs
New WordPress options
db_upgraded
_cs_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by RS Coming Soon
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,156 ▲41015.83 ▲1.465.79 ▲3.7852.48 ▲13.40
Dashboard /wp-admin2,428 ▲2407.11 ▲1.21133.66 ▲33.6699.35 ▲48.98
Posts /wp-admin/edit.php2,346 ▲2573.69 ▲1.6962.22 ▲27.5473.52 ▲36.55
Add New Post /wp-admin/post-new.php1,610 ▲8223.57 ▲5.23660.48 ▲49.1537.14 ▼21.30
Media Library /wp-admin/upload.php1,485 ▲944.83 ▲0.6689.58 ▼8.8784.00 ▲39.04

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_rscs
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • _cs_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/rs-coming-soon/proccess.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/rs-coming-soon/rs-coming-soon-display.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rs-coming-soon/admin/fields/date_picker/load.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can take inspiration from this readme.txt

rs-coming-soon/rs-coming-soon.php 92% from 13 tests

"RS Coming Soon" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 145 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin29,184 lines of code in 88 files:
LanguageFilesBlank linesComment linesLines of code
JSON20012,928
JavaScript111,0828054,672
CSS8181514,548
PHP531,4351,2183,691
Sass531801,952
SVG100655
PO File6261285601
Markdown2210137

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity13.12
▷ Minimum class complexity1.00
▷ Maximum class complexity87.00
Average method complexity4.88
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes33
▷ Abstract classes26.06%
▷ Concrete classes3193.94%
▷ Final classes00.00%
Methods103
▷ Static methods54.85%
▷ Public methods103100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions61
▷ Named functions61100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.79MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/chosen-sprite@2x.png0.85KB0.83KB▼ 3.10%
assets/images/cloud_one.png191.31KB183.62KB▼ 4.02%
assets/images/cloud_three.png280.07KB253.28KB▼ 9.57%
admin/assets/images/chosen-sprite.png0.63KB0.88KB0.00%
assets/images/social-icons.png22.69KB4.92KB▼ 78.33%