84% review-map-by-revukangaroo

Code Review | Review Map by RevuKangaroo

WordPress plugin Review Map by RevuKangaroo scored84%from 54 tests.

About plugin

  • Plugin page: review-map-by-rev...
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.8.1
  • WordPress version: 6.3.1
  • First release: Jul 11, 2016
  • Latest release: Sep 27, 2021
  • Number of updates: 23
  • Update frequency: every 82.9 days
  • Top authors: revukangaroo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,763 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.91ms] Passed 4 tests

This is a short check of server-side resources used by Review Map by RevuKangaroo
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.12 ▼0.61
Dashboard /wp-admin3.34 ▼0.0042.61 ▼15.82
Posts /wp-admin/edit.php3.39 ▲0.0446.10 ▲1.67
Add New Post /wp-admin/post-new.php5.93 ▲0.0483.71 ▼7.74
Media Library /wp-admin/upload.php3.27 ▲0.0435.73 ▼3.48
Schema API Settings /wp-admin/options-general.php?page=schema-api-settings3.2331.58

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Review Map by RevuKangaroo
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4914.35 ▲0.001.87 ▲0.2343.17 ▲3.01
Dashboard /wp-admin2,195 ▲205.53 ▼0.1983.94 ▼17.3940.19 ▼2.58
Posts /wp-admin/edit.php2,106 ▲92.02 ▲0.0835.72 ▼1.3033.66 ▲1.39
Add New Post /wp-admin/post-new.php1,533 ▼523.41 ▲5.40632.98 ▼7.5854.45 ▼12.80
Media Library /wp-admin/upload.php1,406 ▲64.21 ▲0.0694.04 ▼31.0646.87 ▼6.10
Schema API Settings /wp-admin/options-general.php?page=schema-api-settings9612.0024.7226.51

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/review-map-by-revukangaroo/schema-template.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/review-map-by-revukangaroo/review-map-by-revuKangaroo.php:127

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

review-map-by-revukangaroo/review-map-by-revuKangaroo.php 92% from 13 tests

The main PHP file in "Review Map by RevuKangaroo" ver. 1.7 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("review-map-by-revukangaroo.php" instead of "review-map-by-revuKangaroo.php")

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
Everything looks great! No dangerous files found in this plugin324 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP219635319
CSS1005

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions3
▷ Named functions3100.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