10% wp-roids

Code Review | WP Roids

WordPress plugin WP Roids scored10%from 54 tests.

About plugin

  • Plugin page: wp-roids
  • Plugin version: 4.0.2
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.7.2
  • WordPress version: 6.3.1
  • First release: Jan 16, 2017
  • Latest release: May 14, 2021
  • Number of updates: 65
  • Update frequency: every 24.2 days
  • Top authors: PhilMeadows (100%)

Code review

54 tests

User reviews

26 reviews

Install metrics

10+ active /6,767 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
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/wp-roids/wp-roids.php+2575
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

Server metrics [RAM: ▼1.06MB] [CPU: ▼53.10ms] Passed 4 tests

Server-side resources used by WP Roids
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.94 ▼0.537.52 ▼30.99
Dashboard /wp-admin2.96 ▼0.398.03 ▼54.55
Posts /wp-admin/edit.php2.96 ▼0.408.13 ▼33.81
Add New Post /wp-admin/post-new.php2.96 ▼2.938.76 ▼93.05
Media Library /wp-admin/upload.php2.96 ▼0.278.53 ▼26.62

Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Please fix the following
  • The plugin illegally modified 2 files (7.01KB) outside of "wp-content/plugins/wp-roids/" and "wp-content/uploads/"
    • (new file) wp-roids-cache/img/.empty
    • (modified) .htaccess
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Roids
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲8213.31 ▼1.221.95 ▲0.2744.62 ▼0.23
Dashboard /wp-admin2,357 ▲1804.98 ▼0.6996.91 ▼0.7358.18 ▲15.90
Posts /wp-admin/edit.php2,263 ▲1602.36 ▲0.3344.67 ▲3.6766.98 ▲28.50
Add New Post /wp-admin/post-new.php1,713 ▲17622.44 ▲4.19650.64 ▲34.1264.48 ▼10.06
Media Library /wp-admin/upload.php1,633 ▲2334.52 ▲0.3096.62 ▼2.9852.56 ▲10.67

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/wp-roids/wp-roids.php+2575
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: cache, pagespeed, caching, optimize, performance

wp-roids/wp-roids.php Passed 13 tests

The main PHP script in "WP Roids" version 4.0.2 is automatically included on every request by WordPress
41 characters long description:
The fastest caching plugin for WordPress!

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
Success! There were no dangerous files found in this plugin2,507 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP32533732,055
CSS19299354
Markdown169095
JavaScript1003

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity501.00
▷ Minimum class complexity501.00
▷ Maximum class complexity501.00
Average method complexity10.75
▷ Minimum method complexity1.00
▷ Maximum method complexity81.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods49
▷ Static methods24.08%
▷ Public methods3571.43%
▷ Protected methods00.00%
▷ Private methods1428.57%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
There are no PNG files in this plugin