83% rewind-wp

Code Review | Rewind WP

WordPress plugin Rewind WP scored83%from 54 tests.

About plugin

  • Plugin page: rewind-wp
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.4
  • WordPress version: 6.3.1
  • First release: Apr 21, 2020
  • Latest release: Apr 26, 2020
  • Number of updates: 13
  • Update frequency: every 0.5 days
  • Top authors: notetoservices (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /456 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.19MB] [CPU: ▲2,199.08ms] 50% from 4 tests

This is a short check of server-side resources used by Rewind WP
Please fix the following
  • CPU: Total CPU usage should be kept under 500.00ms (currently 7,259.17ms on /wp-admin/tools.php?page=rewindwp)
  • Extra CPU: Extra CPU usage must be kept under 200.00ms (currently 2,199.08ms on /wp-admin/tools.php?page=rewindwp)
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.232,314.67 ▲2,274.59
Dashboard /wp-admin3.52 ▲0.222,245.19 ▲2,197.70
Posts /wp-admin/edit.php3.57 ▲0.222,261.55 ▲2,210.58
Add New Post /wp-admin/post-new.php6.04 ▲0.152,295.07 ▲2,201.15
Media Library /wp-admin/upload.php3.41 ▲0.182,218.19 ▲2,186.87
Rewind WP /wp-admin/tools.php?page=rewindwp3.397,259.17

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Rewind WP
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲10213.20 ▼1.551.75 ▼0.1037.86 ▼10.55
Dashboard /wp-admin2,222 ▲375.88 ▲0.0594.14 ▼6.0244.46 ▲4.93
Posts /wp-admin/edit.php2,102 ▲131.94 ▼0.0333.10 ▼7.5937.08 ▲0.31
Add New Post /wp-admin/post-new.php1,524 ▼1821.32 ▲2.87605.24 ▼17.2549.25 ▼21.36
Media Library /wp-admin/upload.php1,404 ▲194.18 ▼0.0489.44 ▼22.9644.01 ▼2.16
Rewind WP /wp-admin/tools.php?page=rewindwp8422.1423.6537.75

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

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 | 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 items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'rwp_Functions' not found in wp-content/plugins/rewind-wp/inc/RWPSettings.php:540
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rewind-wp/inc/RWPFunctions.php:11

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
Please fix the following attributes:
  • Screenshots: Please add descriptions for these screenshots #1, #2 in rewind-wp/assets to your readme.txt
You can look at the official readme.txt

rewind-wp/rewindwp.php 85% from 13 tests

The main PHP script in "Rewind WP" version 1.0.3 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("rewind-wp.php" instead of "rewindwp.php")
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin831 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3319592831

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity44.33
▷ Minimum class complexity7.00
▷ Maximum class complexity89.00
Average method complexity3.77
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods47
▷ Static methods47100.00%
▷ Public methods47100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.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
3 PNG files occupy 1.02MB with 0.52MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/rwp-logo.png922.57KB599.58KB▼ 35.01%
assets/icon-128x128.png5.17KB2.76KB▼ 46.66%
assets/screenshot-1.png119.83KB33.92KB▼ 71.70%