10% wp-plugin-reviews

Code Review | WP Plugin Reviews

WordPress plugin WP Plugin Reviews scored10%from 54 tests.

About plugin

  • Plugin page: wp-plugin-reviews
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.8
  • WordPress version: 6.3.1
  • First release: Feb 13, 2013
  • Latest release: Oct 13, 2021
  • Number of updates: 17
  • Update frequency: every 186.2 days
  • Top authors: sudar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,988 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/wp-plugin-reviews/wp-plugin-reviews.php+135
    Function create_function() is deprecated

Server metrics [RAM: ▼1.90MB] [CPU: ▼52.94ms] Passed 4 tests

A check of server-side resources used by WP Plugin Reviews
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.384.76 ▼35.63
Dashboard /wp-admin2.10 ▼1.205.70 ▼45.40
Posts /wp-admin/edit.php2.10 ▼1.256.39 ▼41.39
Add New Post /wp-admin/post-new.php2.10 ▼3.785.72 ▼89.33
Media Library /wp-admin/upload.php2.10 ▼1.125.35 ▼29.43

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP Plugin Reviews
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.31 ▼1.461.75 ▼0.0243.03 ▼1.73
Dashboard /wp-admin2,206 ▲145.91 ▲0.95105.31 ▼16.9243.29 ▼1.44
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0135.98 ▲0.4531.11 ▼3.05
Add New Post /wp-admin/post-new.php1,514 ▼017.62 ▲0.04676.39 ▼13.2558.25 ▲5.13
Media Library /wp-admin/upload.php1,388 ▲34.26 ▲0.04105.17 ▲7.1146.07 ▲2.66

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/wp-plugin-reviews/wp-plugin-reviews.php+135
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_wp-plugin-reviews

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-plugin-reviews/wp-plugin-reviews.php:132

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: widget, review, plugin

wp-plugin-reviews/wp-plugin-reviews.php 85% from 13 tests

The main PHP file in "WP Plugin Reviews" ver. 0.4 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path must begin with a forward slash character ("/languages/")
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages/")

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
There were no executable files found in this plugin108 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14579108

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
PNG images were not found in this plugin