10% optimus-price

Code Review | Optimus Price

WordPress plugin Optimus Price scored10%from 54 tests.

About plugin

  • Plugin page: optimus-price
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9
  • WordPress version: 6.3.1
  • First release: May 30, 2018
  • Latest release: Jun 15, 2018
  • Number of updates: 5
  • Update frequency: every 3.2 days
  • Top authors: optimusprice (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /625 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/optimus-price/helpers/optimus_price_setup.php+7
    include(optimus_price_user.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼1.84MB] [CPU: ▼71.86ms] Passed 4 tests

Analyzing server-side resources used by Optimus Price
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.16 ▼1.305.14 ▼37.71
Dashboard /wp-admin2.18 ▼1.166.10 ▼58.69
Posts /wp-admin/edit.php2.18 ▼1.176.63 ▼47.35
Add New Post /wp-admin/post-new.php2.18 ▼3.715.24 ▼143.68
Media Library /wp-admin/upload.php2.18 ▼1.056.09 ▼36.12

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Optimus Price
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6114.40 ▼0.201.91 ▲0.2738.68 ▼3.74
Dashboard /wp-admin2,232 ▲555.78 ▲0.1990.23 ▲2.6839.59 ▼6.21
Posts /wp-admin/edit.php2,137 ▲372.16 ▲0.1241.76 ▼7.0036.37 ▼11.44
Add New Post /wp-admin/post-new.php1,541 ▲1517.44 ▼0.37700.05 ▲36.8049.43 ▼4.18
Media Library /wp-admin/upload.php1,431 ▲344.51 ▲0.2998.41 ▼3.8742.07 ▼6.43

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
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/optimus-price/helpers/optimus_price_setup.php+7
    include(optimus_price_user.php): failed to open stream: No such file or directory
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      include(optimus_price_user.php): failed to open stream: No such file or directory in wp-content/plugins/optimus-price/helpers/optimus_price_setup.php on line 7
    • > PHP Warning
      include(optimus_price_user.php): failed to open stream: No such file or directory in wp-content/plugins/optimus-price/helpers/optimus_price_setup.php on line 7
    • > PHP Warning
      include(): Failed opening 'optimus_price_user.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/optimus-price/helpers/optimus_price_setup.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/optimus-price/optimus-price.php:24
    • > PHP Warning
      include(): Failed opening 'optimus_price_user.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/optimus-price/helpers/optimus_price_setup.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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
6 plugin tags: pricing, predictive analytics, sales, artificial intelligence, demand...

optimus-price/optimus-price.php Passed 13 tests

The main file in "Optimus Price" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
109 characters long description:
Optimus Price automate pricing using Artificial Intelligence. It maximizes profit for your existing products.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin277 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP43135277

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions11
▷ Named functions11100.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 files were detected