84% relive-classic

Code Review | Relive Classic

WordPress plugin Relive Classic scored84%from 54 tests.

About plugin

  • Plugin page: relive-classic
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6 or later+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.0
  • WordPress version: 6.3.1
  • First release: Jul 13, 2022
  • Latest release: Jul 13, 2022
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: nhathuynhvandotcom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /757 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.56MB] [CPU: ▼14.34ms] Passed 4 tests

Server-side resources used by Relive Classic
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0733.73 ▼8.71
Dashboard /wp-admin3.37 ▲0.0643.16 ▼6.83
Posts /wp-admin/edit.php3.48 ▲0.1249.96 ▲2.15
Add New Post /wp-admin/post-new.php3.45 ▼2.4452.47 ▼43.98
Media Library /wp-admin/upload.php3.29 ▲0.0638.94 ▲3.72

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Relive Classic
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8313.28 ▼1.091.58 ▼0.2937.01 ▼5.56
Dashboard /wp-admin2,224 ▲334.85 ▼0.01113.23 ▲11.0743.08 ▲0.31
Posts /wp-admin/edit.php2,107 ▲182.00 ▼0.0341.01 ▲3.4235.14 ▲2.22
Add New Post /wp-admin/post-new.php3,106 ▲1,5737.75 ▼15.35220.38 ▼445.6375.86 ▲14.29
Media Library /wp-admin/upload.php1,403 ▲124.18 ▲0.0193.60 ▼10.0637.44 ▼8.06

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/relive-classic/settings.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/relive-classic/implement.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: blocks, editor, disable, gutenberg, block editor...

relive-classic/index.php 85% from 13 tests

The main PHP script in "Relive Classic" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Requires PHP: Please use periods and digits for the required version (ex. "7.0" instead of "5.6 or later")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("relive-classic.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected251 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP35029230
CSS10021

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity5.00
▷ Minimum class complexity2.00
▷ Maximum class complexity8.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods1386.67%
▷ Protected methods00.00%
▷ Private methods213.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected