84% reweby

Code Review | ReWeby

WordPress plugin ReWeby scored 84% from 54 tests.

About plugin

  • Plugin page: reweby
  • Plugin version: 2.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-6.3
  • WordPress version: 6.3.1
  • First release: Sep 14, 2022
  • Latest release: Sep 4, 2023
  • Number of updates: 8
  • Update frequency: every 44.4 days
  • Top authors: hitstacks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 598 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.53ms] Passed 4 tests

A check of server-side resources used by ReWeby
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.54 ▼5.45
Dashboard /wp-admin3.33 ▲0.0246.49 ▲0.42
Posts /wp-admin/edit.php3.38 ▲0.0246.25 ▼8.13
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.59 ▼12.94
Media Library /wp-admin/upload.php3.25 ▲0.0237.65 ▲5.00
ReWebY - Record /wp-admin/options-general.php?page=usractv3.3231.35

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for ReWeby
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲17714.04 ▼0.3711.29 ▲9.4744.05 ▼7.11
Dashboard /wp-admin2,212 ▲246.10 ▲1.2199.87 ▼17.9741.87 ▼2.37
Posts /wp-admin/edit.php2,095 ▲62.18 ▲0.1741.37 ▲0.9936.57 ▼0.27
Add New Post /wp-admin/post-new.php1,672 ▲13822.61 ▼0.53669.52 ▼7.9556.38 ▼0.59
Media Library /wp-admin/upload.php1,397 ▲64.36 ▲0.19102.75 ▲4.8341.02 ▼4.72
ReWebY - Record /wp-admin/options-general.php?page=usractv1,0092.3528.6134.77

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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 trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/reweby/reweby.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
  • Contributors: Contributors not specified
The official readme.txt is a good inspiration

reweby/reweby.php Passed 13 tests

The primary PHP file in "ReWeby" version 2.0.4 is used by WordPress to initiate all plugin functionality
39 characters long description:
User Activity Tracking & Video Reording

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
Success! There were no dangerous files found in this plugin578 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP28336566
JavaScript12012

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity2.92
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.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
There were not PNG files found in your plugin