68% wp-admin-reviews

Code Review | Admin Reviews

WordPress plugin Admin Reviews scored 68% from 54 tests.

About plugin

  • Plugin page: wp-admin-reviews
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 10, 2018
  • Latest release: Jun 5, 2018
  • Number of updates: 5
  • Update frequency: every 6.2 days
  • Top authors: oremtech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 487 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.91MB] [CPU: ▼35.33ms] Passed 4 tests

A check of server-side resources used by Admin Reviews
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0443.36 ▲3.26
Dashboard /wp-admin3.03 ▼0.2722.82 ▼25.39
Posts /wp-admin/edit.php3.03 ▼0.3225.01 ▼23.51
Add New Post /wp-admin/post-new.php3.03 ▼2.8623.52 ▼78.85
Media Library /wp-admin/upload.php3.03 ▼0.2023.30 ▼13.58
Add new /wp-admin/edit-comments.php?page=admin_reviews-dashboard3.0325.71
All Comments /wp-admin/edit-comments.php3.0324.99

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Admin Reviews
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲8913.20 ▼1.181.80 ▲0.1341.73 ▼0.21
Dashboard /wp-admin2,230 ▲455.86 ▼0.07102.18 ▲0.8240.54 ▼0.31
Posts /wp-admin/edit.php2,113 ▲272.04 ▲0.0439.06 ▲4.6034.18 ▲0.31
Add New Post /wp-admin/post-new.php1,545 ▲718.35 ▼4.80616.57 ▲27.4955.66 ▲3.24
Media Library /wp-admin/upload.php1,415 ▲244.25 ▲0.0595.23 ▼3.7641.68 ▼3.22
Add new /wp-admin/edit-comments.php?page=admin_reviews-dashboard1,6835.75117.8155.10
All Comments /wp-admin/edit-comments.php1,8192.2935.8633.66

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit-comments.php
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
    • > GET request to /wp-admin/edit-comments.php?page=admin_reviews-dashboard
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method ARW_admin_reviews::ARW_render_submenu_pages() should not be called statically
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit-comments.php?page=admin_reviews-dashboard
    • > Warning in wp-content/plugins/wp-admin-reviews/templates/arw_addnew.php+5
    session_start(): Cannot start session when headers already sent
    • > GET request to /wp-admin/edit-comments.php?page=admin_reviews-dashboard
    • > Notice in wp-content/plugins/wp-admin-reviews/templates/arw_addnew.php+87
    Undefined variable: content

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-admin-reviews/templates/arw_addnew.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: admin reviews, reviews, addon for comments, comments_open, admin add comments for users

wp-admin-reviews/admin_reviews.php 85% from 13 tests

"Admin Reviews" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-admin-reviews.php" instead of "admin_reviews.php")

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
Everything looks great! No dangerous files found in this plugin368 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP21843258
JavaScript1133108
CSS1002

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity5.12
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin