90% rng-isuc

Code Review | rng-isuc

WordPress plugin rng-isuc scored90%from 54 tests.

About plugin

  • Plugin page: rng-isuc
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1
  • WordPress version: 6.3.1
  • First release: Mar 18, 2019
  • Latest release: May 8, 2019
  • Number of updates: 5
  • Update frequency: every 10.4 days
  • Top authors: asabagh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /458 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▲1.37ms] Passed 4 tests

A check of server-side resources used by rng-isuc
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0946.95 ▲5.00
Dashboard /wp-admin3.33 ▲0.0352.93 ▼4.65
Posts /wp-admin/edit.php3.39 ▲0.0357.89 ▲11.39
Add New Post /wp-admin/post-new.php5.91 ▲0.0394.45 ▲1.93
Media Library /wp-admin/upload.php3.26 ▲0.0340.23 ▲3.21
Last posts viewed /wp-admin/options-general.php?page=isuc-settings3.2535.27

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 8 new options
New WordPress options
isuc_configration_dissmiss
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_uc-post-viewed

Browser metrics Passed 4 tests

This is an overview of browser requirements for rng-isuc
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,968 ▲18213.81 ▼0.5410.39 ▲7.8046.90 ▼2.92
Dashboard /wp-admin2,207 ▲335.64 ▼0.0385.05 ▼17.4742.06 ▼2.98
Posts /wp-admin/edit.php2,115 ▲152.02 ▲0.0640.90 ▲4.6837.73 ▼0.68
Add New Post /wp-admin/post-new.php1,537 ▲1123.21 ▼0.35635.25 ▼21.0057.21 ▲5.10
Media Library /wp-admin/upload.php1,406 ▲64.22 ▲0.0696.42 ▼5.4445.08 ▲2.07
Last posts viewed /wp-admin/options-general.php?page=isuc-settings8922.0022.9831.93

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
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_uc-post-viewed
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: recent post viewed, post viewed, rng

rng-isuc/rng-isuc.php Passed 13 tests

The principal PHP file in "rng-isuc" v. 1.0 is loaded by WordPress automatically on each request
116 characters long description:
WordPress Plugin that shows last post viewed by user in several viewes like widget, shortcode and sidebar navigation

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
Success! There were no dangerous files found in this plugin968 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP1095205589
CSS1407230
PO File1343792
Markdown110031
SVG10014
JavaScript10012

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity14.75
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity2.41
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods39
▷ Static methods00.00%
▷ Public methods3897.44%
▷ Protected methods00.00%
▷ Private methods12.56%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin