78% suggest-review

Code Review | Suggest Review

WordPress plugin Suggest Review scored78%from 54 tests.

About plugin

  • Plugin page: suggest-review
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.2-4.3.1
  • WordPress version: 6.3.1
  • First release: Jul 16, 2013
  • Latest release: Nov 2, 2015
  • Number of updates: 34
  • Update frequency: every 24.7 days
  • Top authors: george_michael (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,648 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.49MB] [CPU: ▼19.99ms] Passed 4 tests

Analyzing server-side resources used by Suggest Review
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1832.48 ▼8.69
Dashboard /wp-admin3.52 ▲0.1746.72 ▼15.37
Posts /wp-admin/edit.php3.63 ▲0.2848.26 ▲2.59
Add New Post /wp-admin/post-new.php3.37 ▼2.5235.36 ▼58.11
Media Library /wp-admin/upload.php3.44 ▲0.2137.33 ▲2.23
Settings /wp-admin/admin.php?page=suggestreview_settings3.3830.65
Flagged Posts /wp-admin/admin.php?page=suggestreview_posts3.4035.56

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
SuggestReviewAdminOptions
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Suggest Review: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲11013.20 ▼1.564.70 ▲2.8039.32 ▼3.26
Dashboard /wp-admin2,235 ▲445.91 ▲1.04110.63 ▲2.2339.26 ▼2.29
Posts /wp-admin/edit.php2,134 ▲452.20 ▲0.1539.96 ▲2.1335.64 ▲1.29
Add New Post /wp-admin/post-new.php6,251 ▲4,72319.04 ▲0.81845.33 ▲239.7259.19 ▼6.16
Media Library /wp-admin/upload.php1,420 ▲324.21 ▲0.0195.46 ▼1.8341.23 ▼1.09
Settings /wp-admin/admin.php?page=suggestreview_settings1,1332.0523.8328.64
Flagged Posts /wp-admin/admin.php?page=suggestreview_posts7822.0624.3722.80

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • SuggestReviewAdminOptions
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=suggestreview_settings
    • > Notice in wp-content/plugins/suggest-review/suggest-review.php+431
    Undefined index: exclude_ids
    • > GET request to /wp-admin/admin.php?page=suggestreview_posts
    • > Notice in wp-content/plugins/suggest-review/suggest-review.php+546
    Undefined variable: sortedposts
    • > GET request to /wp-admin/admin.php?page=suggestreview_posts
    • > Warning in wp-content/plugins/suggest-review/suggest-review.php+546
    count(): Parameter must be an array or an object that implements Countable

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/suggest-review/suggest-review.php:856

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === suggest-review === )
  • Donate link: Please fix this invalid url: ""
  • Tags: No tags were detected
Please take inspiration from this readme.txt

suggest-review/suggest-review.php Passed 13 tests

"Suggest Review" version 1.4.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
71 characters long description:
Lets users suggest that content may need to be reviewed or re-examined.

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
Good job! No executable or dangerous file extensions detected1,063 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP110295681
PO File1105142353
CSS12329

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity108.00
▷ Minimum class complexity108.00
▷ Maximum class complexity108.00
Average method complexity9.23
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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