73% reviewforumami

Code Review | ReviewForUmaMi

WordPress plugin ReviewForUmaMi scored73%from 54 tests.

About plugin

  • Plugin page: reviewforumami
  • Plugin version: 0.2.7
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9
  • WordPress version: 6.3.1
  • First release: Jun 6, 2018
  • Latest release: Jun 19, 2018
  • Number of updates: 28
  • Update frequency: every 0.5 days
  • Top authors: yakitori00 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /496 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.08ms] Passed 4 tests

Server-side resources used by ReviewForUmaMi
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0641.14 ▼1.16
Dashboard /wp-admin3.37 ▲0.0756.05 ▼0.13
Posts /wp-admin/edit.php3.48 ▲0.1352.83 ▲2.70
Add New Post /wp-admin/post-new.php5.95 ▲0.0791.66 ▼16.28
Media Library /wp-admin/upload.php3.29 ▲0.0736.88 ▲1.26

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
  • The plugin illegally modified 4 files (0.00KB) outside of "wp-content/plugins/reviewforumami/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/reviewforumami/img/\343\203\220\343\203\203\343\202\257\343\202\271\343\202\277\343\203\274A.png"
    • (new file) "wp-content/plugins/reviewforumami/img/\343\203\220\343\203\203\343\202\257\343\202\271\343\202\277\343\203\274.png"
    • (new file) "wp-content/plugins/reviewforumami/img/\343\202\271\343\202\277\343\203\274.png"
    • (new file) "wp-content/plugins/reviewforumami/img/\343\202\271\343\202\277\343\203\274A.png"
Filesystem: 3 new files
Database: 1 new table, 7 new options
New tables
wp_reviewtableforUmaMi
New WordPress options
can_compress_scripts
widget_theysaidso_widget
cmt_meta_version
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for ReviewForUmaMi
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6613.26 ▼1.151.77 ▼0.2844.89 ▲2.51
Dashboard /wp-admin2,218 ▲335.88 ▼0.18110.26 ▲6.8643.71 ▲0.36
Posts /wp-admin/edit.php2,101 ▲122.03 ▲0.0237.78 ▼2.9638.86 ▲2.30
Add New Post /wp-admin/post-new.php1,543 ▲2423.19 ▼0.15692.13 ▼18.5661.46 ▼5.78
Media Library /wp-admin/upload.php1,403 ▲154.23 ▲0.0195.35 ▼11.2845.26 ▲4.56

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
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_reviewtableforUmaMi
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • cmt_meta_version
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/reviewforumami/reviewforUmaMi.php:459
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/reviewforumami/reviewforUmaMi.php on line 458

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
The official readme.txt might help

reviewforumami/reviewforUmaMi.php 92% from 13 tests

The main PHP file in "ReviewForUmaMi" ver. 0.2.7 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("reviewforumami.php" instead of "reviewforUmaMi.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin532 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11929441
CSS16091

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity12.67
▷ Minimum class complexity2.00
▷ Maximum class complexity27.00
Average method complexity3.69
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/スターA.png5.22KB2.90KB▼ 44.33%
img/バックスターA.png4.02KB1.82KB▼ 54.73%
img/スター.png1.63KB0.93KB▼ 43.12%
img/バックスター.png1.63KB0.93KB▼ 42.95%