10% romancartwppluginstd

Code Review | RomanCartWPPluginStd

WordPress plugin RomanCartWPPluginStd scored10%from 54 tests.

About plugin

  • Plugin page: romancartwppluginstd
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.2-3.4
  • WordPress version: 6.3.1
  • First release: Apr 29, 2010
  • Latest release: Jul 23, 2014
  • Number of updates: 17
  • Update frequency: every 90.9 days
  • Top authors: davelopware (64.71%)eddicted (41.18%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,092 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
You still need to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/romancartwppluginstd/index.php+32
    Methods with the same name as their class will not be constructors in a future version of PHP; RomanCartWPPlugin has a deprecated constructor

Server metrics [RAM: ▼1.89MB] [CPU: ▼51.73ms] Passed 4 tests

This is a short check of server-side resources used by RomanCartWPPluginStd
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.364.35 ▼34.72
Dashboard /wp-admin2.12 ▼1.195.67 ▼40.28
Posts /wp-admin/edit.php2.12 ▼1.245.59 ▼41.36
Add New Post /wp-admin/post-new.php2.12 ▼3.775.39 ▼90.57
Media Library /wp-admin/upload.php2.12 ▼1.116.14 ▼29.30
RomanCart /wp-admin/options-general.php?page=romancartwppluginstd/settings.php2.126.38

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by RomanCartWPPluginStd
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.24 ▼1.061.93 ▲0.1638.23 ▼8.63
Dashboard /wp-admin2,213 ▲255.89 ▲0.8696.00 ▼9.8842.00 ▼3.00
Posts /wp-admin/edit.php2,093 ▲11.97 ▼0.0340.14 ▼0.1436.75 ▲2.46
Add New Post /wp-admin/post-new.php1,517 ▼517.51 ▼5.77656.58 ▼6.9049.68 ▼6.22
Media Library /wp-admin/upload.php1,386 ▼24.26 ▲0.0094.73 ▼4.7942.89 ▼5.03
RomanCart /wp-admin/options-general.php?page=romancartwppluginstd/settings.php1,1432.0622.4943.90

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
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/romancartwppluginstd/index.php+32
    Methods with the same name as their class will not be constructors in a future version of PHP; RomanCartWPPlugin has a deprecated constructor
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=romancartwppluginstd/settings.php
    • > Deprecated in wp-content/plugins/romancartwppluginstd/index.php+32
    Methods with the same name as their class will not be constructors in a future version of PHP; RomanCartWPPlugin has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=romancartwppluginstd/settings.php
    • > Notice in wp-content/plugins/romancartwppluginstd/index.php+240
    Undefined variable: romancartwpplugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=romancartwppluginstd/settings.php
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=romancartwppluginstd/settings.php
    • > Notice in wp-content/plugins/romancartwppluginstd/settings.php+61
    Undefined property: RomanCartWPPlugin::$tag
    • > GET request to /wp-admin/options-general.php?page=romancartwppluginstd/settings.php
    • > Notice in wp-content/plugins/romancartwppluginstd/settings.php+36
    Undefined index: stage
    • > GET request to /wp-admin/options-general.php?page=romancartwppluginstd/settings.php
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=romancartwppluginstd/settings.php
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=romancartwppluginstd/settings.php
    • > Notice in wp-content/plugins/romancartwppluginstd/settings.php+59
    Undefined property: RomanCartWPPlugin::$settings_page
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=romancartwppluginstd/settings.php
    • > Notice in wp-content/plugins/romancartwppluginstd/settings.php+203
    Undefined variable: pro_feature_text_style

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: romancartwpplugin in wp-content/plugins/romancartwppluginstd/settings.php on line 24
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_storeid() on null in wp-content/plugins/romancartwppluginstd/settings.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/romancartwppluginstd/index.php:45
    • > PHP Notice
      Undefined variable: romancartwpplugin in wp-content/plugins/romancartwppluginstd/index.php on line 240
    • > PHP Notice
      Undefined variable: romancartwpplugin in wp-content/plugins/romancartwppluginstd/settings.php on line 23
    • > PHP Notice
      Trying to get property 'tag' of non-object in wp-content/plugins/romancartwppluginstd/settings.php on line 23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (No Screen shots available as yet.) image required
The official readme.txt is a good inspiration

romancartwppluginstd/index.php 92% from 13 tests

"RomanCartWPPluginStd" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("romancartwppluginstd.php" instead of "index.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
Good job! No executable or dangerous file extensions detected363 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25854363

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin