79% roxi

Code Review | Roxi

WordPress plugin Roxi scored 79% from 54 tests.

About plugin

  • Plugin page: roxi
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.0
  • WordPress version: 6.3.1
  • First release: May 8, 2014
  • Latest release: Sep 4, 2014
  • Number of updates: 9
  • Update frequency: every 13.3 days
  • Top authors: getroxi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 787 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▲0.31ms] Passed 4 tests

A check of server-side resources used by Roxi
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.88 ▼9.03
Dashboard /wp-admin3.32 ▲0.0256.08 ▲7.85
Posts /wp-admin/edit.php3.37 ▲0.0247.66 ▲2.28
Add New Post /wp-admin/post-new.php5.90 ▲0.02100.48 ▲6.55
Media Library /wp-admin/upload.php3.25 ▲0.0235.60 ▲1.42
Roxi Settings /wp-admin/options-general.php?page=roxi-setting-admin3.1934.22

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
roxi_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Roxi
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6114.48 ▲0.111.67 ▼0.4238.07 ▼2.26
Dashboard /wp-admin2,216 ▲284.85 ▼0.04100.84 ▼2.6639.29 ▼2.02
Posts /wp-admin/edit.php2,096 ▲72.02 ▼0.0140.07 ▲1.9834.86 ▲1.83
Add New Post /wp-admin/post-new.php1,526 ▼423.14 ▲4.84603.08 ▲4.0752.22 ▼0.59
Media Library /wp-admin/upload.php1,395 ▲164.21 ▼0.0995.91 ▼7.2040.92 ▼5.46
Roxi Settings /wp-admin/options-general.php?page=roxi-setting-admin8412.0431.2939.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • roxi_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=roxi-setting-admin
    • > 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=roxi-setting-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/roxi/roxi.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/roxi/class.roxi-settings.php:173

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

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: clubs, nightlife, entertainment, roxi, tickets...

roxi/roxi.php Passed 13 tests

This is the main PHP file of "Roxi" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
68 characters long description:
This plugin allows the Roxi Widget to be placed on any post or page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin189 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24689178
JavaScript13511

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
js/img/roxi.png3.27KB0.61KB▼ 81.20%