10% womoplus

Code Review | womoplus

WordPress plugin womoplus scored10%from 54 tests.

About plugin

  • Plugin page: womoplus
  • Plugin version: 1.9
  • PHP compatiblity: 5.6.33+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Jan 23, 2019
  • Latest release: Aug 14, 2023
  • Number of updates: 23
  • Update frequency: every 72.4 days
  • Top authors: ebenefuenf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /844 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
These installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/womoplus/womoplus.php+244
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.19MB] [CPU: ▼37.96ms] Passed 4 tests

An overview of server-side resources used by womoplus
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.78 ▼0.6820.49 ▼19.75
Dashboard /wp-admin2.82 ▼0.4815.72 ▼31.90
Posts /wp-admin/edit.php2.82 ▼0.5316.89 ▼29.44
Add New Post /wp-admin/post-new.php2.82 ▼3.0619.58 ▼70.73
Media Library /wp-admin/upload.php2.82 ▼0.4115.89 ▼17.66

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

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

Browser metrics Passed 4 tests

Checking browser requirements for womoplus
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.57 ▼0.801.56 ▼0.1839.84 ▼0.65
Dashboard /wp-admin2,225 ▲375.85 ▲0.9795.55 ▼12.2138.57 ▼5.45
Posts /wp-admin/edit.php2,105 ▲162.04 ▲0.0438.31 ▲1.5634.92 ▼0.83
Add New Post /wp-admin/post-new.php1,527 ▼1017.55 ▼5.65692.94 ▲12.2362.48 ▲9.82
Media Library /wp-admin/upload.php1,407 ▲254.21 ▲0.0493.22 ▼15.7941.22 ▼4.47

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/womoplus/womoplus.php+244
    Trying to access array offset on value of type bool
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/womoplus/womoplus.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
No tags were detected

womoplus/womoplus.php Passed 13 tests

The entry point to "womoplus" version 1.9 is a PHP file that has certain tags in its header comment area
51 characters long description:
Provides integration of the womoplus rent software.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin279 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12224219
PO File1242960

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin