84% reviewmenow

Code Review | Review Me Now

WordPress plugin Review Me Now scored 84% from 54 tests.

About plugin

  • Plugin page: reviewmenow
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8.2
  • WordPress version: 6.3.1
  • First release: Nov 23, 2017
  • Latest release: Nov 24, 2017
  • Number of updates: 7
  • Update frequency: every 1.1 days
  • Top authors: reviewme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 501 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.28ms] Passed 4 tests

Server-side resources used by Review Me Now
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.93 ▼11.75
Dashboard /wp-admin3.31 ▲0.0143.13 ▼4.93
Posts /wp-admin/edit.php3.36 ▲0.0148.43 ▲1.91
Add New Post /wp-admin/post-new.php5.89 ▲0.01115.15 ▲14.95
Media Library /wp-admin/upload.php3.23 ▲0.0134.78 ▲1.66
Review Me Now /wp-admin/options-general.php?page=reviewmenow3.2032.20

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
reviewme_logo_display
google_review_clientId
theysaidso_admin_options
google_placeId
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Review Me Now: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6414.48 ▲0.091.76 ▲0.0766.41 ▲20.41
Dashboard /wp-admin2,210 ▲225.85 ▼0.03108.90 ▲5.8040.93 ▼2.91
Posts /wp-admin/edit.php2,096 ▲72.00 ▼0.0139.75 ▲2.2633.43 ▼2.56
Add New Post /wp-admin/post-new.php1,549 ▲1518.09 ▼5.19596.83 ▼31.2972.94 ▲4.70
Media Library /wp-admin/upload.php1,392 ▲74.23 ▲0.0394.06 ▼7.7542.87 ▼0.42
Review Me Now /wp-admin/options-general.php?page=reviewmenow8022.0324.0026.42

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× 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/reviewmenow/reviewmenow.php:26
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/reviewmenow/reviewmenow.php on line 24

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: google business reviews, reviews, review me now

reviewmenow/reviewmenow.php Passed 13 tests

The main PHP file in "Review Me Now" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
98 characters long description:
how Google Places Reviews on your WordPress website which are register with http://reviewmenow.com

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin265 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS1133133
PHP13427132

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity3.43
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods7100.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

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/reviewmenow.png5.95KB4.42KB▼ 25.71%