83% wp-readremaining

Code Review | WP ReadRemaining

WordPress plugin WP ReadRemaining scored83%from 54 tests.

About plugin

  • Plugin page: wp-readremaining
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3
  • WordPress version: 6.3.1
  • First release: Aug 19, 2015
  • Latest release: Aug 19, 2015
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: onlineth (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /595 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼4.59ms] Passed 4 tests

An overview of server-side resources used by WP ReadRemaining
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.89 ▲0.21
Dashboard /wp-admin3.31 ▼0.0347.53 ▼15.16
Posts /wp-admin/edit.php3.36 ▲0.0148.69 ▲2.03
Add New Post /wp-admin/post-new.php5.89 ▲0.0196.08 ▼5.45
Media Library /wp-admin/upload.php3.23 ▲0.0136.85 ▲5.00
ReadRemaining /wp-admin/options-general.php?page=wprrjs-options3.2032.14

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
wprrjs_use_cdn
can_compress_scripts
wprrjs_theme
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WP ReadRemaining
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,929 ▲16813.62 ▼0.905.36 ▲3.7738.43 ▼2.05
Dashboard /wp-admin2,228 ▲244.88 ▼0.03107.28 ▼0.5743.02 ▼0.61
Posts /wp-admin/edit.php2,104 ▲42.04 ▲0.0840.04 ▲3.5235.49 ▼1.30
Add New Post /wp-admin/post-new.php1,548 ▲1723.03 ▲0.11639.96 ▼0.8656.05 ▲1.66
Media Library /wp-admin/upload.php1,398 ▼24.23 ▲0.00102.56 ▲6.4745.69 ▲3.36
ReadRemaining /wp-admin/options-general.php?page=wprrjs-options8132.0726.0128.89

Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 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 were found after uninstall: 8 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • wprrjs_theme
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • wprrjs_use_cdn

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-readremaining/wp-ReadRemaining.php

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #1 (Here's what it looks like in action)
The official readme.txt is a good inspiration

wp-readremaining/wp-ReadRemaining.php 85% from 13 tests

The main PHP file in "WP ReadRemaining" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 145 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-readremaining.php" instead of "wp-ReadRemaining.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected140 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS28088
PHP181450
JavaScript2002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions4
▷ Named functions4100.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png27.17KB11.61KB▼ 57.26%