84% right-now-reloaded

Code Review | Right Now Reloaded

WordPress plugin Right Now Reloaded scored84%from 54 tests.

About plugin

  • Plugin page: right-now-reloaded
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.5.2
  • WordPress version: 6.3.1
  • First release: May 25, 2011
  • Latest release: Jul 1, 2013
  • Number of updates: 19
  • Update frequency: every 40.5 days
  • Top authors: SeventhSteel (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /4,837 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼8.94ms] Passed 4 tests

Server-side resources used by Right Now Reloaded
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0543.87 ▲0.03
Dashboard /wp-admin3.37 ▲0.0248.95 ▼15.22
Posts /wp-admin/edit.php3.41 ▲0.0550.08 ▼1.69
Add New Post /wp-admin/post-new.php5.94 ▲0.0593.31 ▼15.58
Media Library /wp-admin/upload.php3.28 ▲0.0538.23 ▼3.26

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Right Now Reloaded
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.38 ▲0.031.90 ▲0.3145.21 ▲4.99
Dashboard /wp-admin2,231 ▲565.62 ▼0.0694.24 ▼11.1546.13 ▲1.91
Posts /wp-admin/edit.php2,100 ▼31.98 ▼0.0244.45 ▼0.9437.35 ▼3.21
Add New Post /wp-admin/post-new.php1,526 ▼023.04 ▲0.01627.13 ▼46.4750.05 ▼2.85
Media Library /wp-admin/upload.php1,403 ▲34.19 ▲0.0399.06 ▼19.5741.88 ▼6.50

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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× 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/right-now-reloaded/right-now-reloaded.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
  • Screenshots: Please add images for these screenshots: #1 (Right Now Reloaded on a simple site), #2 (What a Contributor sees on the same site as above), #3 (Right Now Reloaded on a large site with lots of custom content types)
The official readme.txt is a good inspiration

right-now-reloaded/right-now-reloaded.php Passed 13 tests

The primary PHP file in "Right Now Reloaded" version 2.2 is used by WordPress to initiate all plugin functionality
100 characters long description:
A better version of the "Right Now" dashboard widget, tailored to show what's relevant to your site.

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 plugin295 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP19685245
CSS110050

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity43.00
▷ Minimum class complexity43.00
▷ Maximum class complexity43.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods15100.00%
▷ Public methods640.00%
▷ Protected methods00.00%
▷ Private methods960.00%
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
3 PNG files occupy 0.28MB with 0.23MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png98.78KB18.50KB▼ 81.27%
screenshot-2.png87.74KB16.55KB▼ 81.14%
screenshot-3.png102.87KB19.76KB▼ 80.79%