10% mroonga

Code Review | Mroonga

WordPress plugin Mroonga scored10%from 54 tests.

About plugin

  • Plugin page: mroonga
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.1-4.8.1
  • WordPress version: 6.3.1
  • First release: Aug 17, 2017
  • Latest release: Feb 8, 2018
  • Number of updates: 6
  • Update frequency: every 29.5 days
  • Top authors: ktou (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /966 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/mroonga/mroonga.php+57
    Undefined variable: messagee

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.82ms] Passed 4 tests

Server-side resources used by Mroonga
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.02 ▼7.49
Dashboard /wp-admin3.31 ▲0.0043.43 ▼3.38
Posts /wp-admin/edit.php3.36 ▲0.0048.16 ▼0.12
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.41 ▼16.29
Media Library /wp-admin/upload.php3.23 ▲0.0049.29 ▲15.05

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Mroonga
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.571.60 ▼0.1240.22 ▼2.83
Dashboard /wp-admin2,203 ▲155.83 ▲0.93106.80 ▼14.3239.03 ▼0.22
Posts /wp-admin/edit.php2,086 ▼32.00 ▼0.0039.34 ▼1.7735.33 ▼0.04
Add New Post /wp-admin/post-new.php1,514 ▼2317.48 ▼0.86679.39 ▲61.4164.34 ▲4.73
Media Library /wp-admin/upload.php1,388 ▲34.21 ▼0.0095.52 ▼11.8340.98 ▼4.54

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 does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/mroonga/mroonga.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

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
Please fix the following attributes:
  • 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

mroonga/mroonga.php 92% from 13 tests

"Mroonga" version 0.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 248 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected144 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1319144

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods960.00%
▷ Protected methods00.00%
▷ Private methods640.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
PNG images were not found in this plugin