68% uqrate

Code Review | Uqrate

WordPress plugin Uqrate scored 68% from 54 tests.

About plugin

  • Plugin page: uqrate
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 18, 2022
  • Latest release: Nov 4, 2022
  • Number of updates: 10
  • Update frequency: every 4.8 days
  • Top authors: uqrate (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 511 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼2.63ms] Passed 4 tests

A check of server-side resources used by Uqrate
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2138.17 ▼2.16
Dashboard /wp-admin3.51 ▲0.2147.73 ▲0.53
Posts /wp-admin/edit.php3.63 ▲0.2850.96 ▼0.01
Add New Post /wp-admin/post-new.php6.11 ▲0.2385.86 ▼8.48
Media Library /wp-admin/upload.php3.44 ▲0.2135.35 ▲0.15
Uqrate /wp-admin/options-general.php?page=uqrate-settings-page3.4734.08

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 19 new files
Database: 1 new table, 8 new options
New tables
wp_uqrate_posts_threads
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
uqrate_activated
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
uqrate_created_jt

Browser metrics Passed 4 tests

A check of browser resources used by Uqrate
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲8814.48 ▲0.182.42 ▲0.5338.05 ▼2.50
Dashboard /wp-admin2,186 ▼34.85 ▼0.07110.26 ▼5.1241.28 ▲0.38
Posts /wp-admin/edit.php2,075 ▼142.02 ▼0.0139.94 ▼0.8634.16 ▼3.65
Add New Post /wp-admin/post-new.php1,346 ▼16817.12 ▼0.39541.75 ▼146.4759.08 ▲10.71
Media Library /wp-admin/upload.php1,377 ▼114.19 ▼0.05104.08 ▼8.2243.56 ▼7.74
Uqrate /wp-admin/options-general.php?page=uqrate-settings-page1,0542.0327.2367.25

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_uqrate_posts_threads
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • uqrate_activated
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • uqrate_created_jt

Smoke tests 50% 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)
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 8× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/uqrate/uqrate.php
    • > /wp-content/plugins/uqrate/class.core.php
    • > /wp-content/plugins/uqrate/class.admin.php
    • > /wp-content/plugins/uqrate/views/admin.php
    • > /wp-content/plugins/uqrate/class.page.php
    • > /wp-content/plugins/uqrate/uninstall.php
    • > /wp-content/plugins/uqrate/class.sync.php
    • > /wp-content/plugins/uqrate/class.post.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/uqrate/views/admin.php on line 2
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/uqrate/views/admin.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'Uqrate' not found in wp-content/plugins/uqrate/views/comments.php:3
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/uqrate/views/admin.php on line 53

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt is a good inspiration

uqrate/uqrate.php Passed 13 tests

The primary PHP file in "Uqrate" version 1.0.0 is used by WordPress to initiate all plugin functionality
70 characters long description:
Member-curated comments, paid subscriptions and broadcasting services.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,649 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP1001801,467
CSS41916102
JavaScript271180

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity34.20
▷ Minimum class complexity6.00
▷ Maximum class complexity65.00
Average method complexity3.52
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods66
▷ Static methods66100.00%
▷ Public methods2740.91%
▷ Protected methods2233.33%
▷ Private methods1725.76%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants457.14%
▷ Class constants342.86%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin