10% rollerblade-app

Code Review | Rollerblade

WordPress plugin Rollerblade scored10%from 54 tests.

About plugin

  • Plugin page: rollerblade-app
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.4
  • WordPress version: 6.3.1
  • First release: Jun 1, 2015
  • Latest release: Mar 7, 2016
  • Number of updates: 18
  • Update frequency: every 15.7 days
  • Top authors: larrykokoszka (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,144 total downloads

Benchmarks

Plugin footprint 58% 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
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Rollerblade::activate() should not be called statically

Server metrics [RAM: ▲0.09MB] [CPU: ▼9.40ms] Passed 4 tests

Analyzing server-side resources used by Rollerblade
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1141.79 ▲0.13
Dashboard /wp-admin3.41 ▲0.0647.68 ▼24.16
Posts /wp-admin/edit.php3.46 ▲0.1051.27 ▲2.97
Add New Post /wp-admin/post-new.php5.99 ▲0.1083.45 ▼15.15
Media Library /wp-admin/upload.php3.33 ▲0.1035.91 ▲1.60
Rollerblade /wp-admin/options-general.php?page=rollerblade3.3032.72

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Rollerblade
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲3713.25 ▼0.991.74 ▼0.1641.93 ▼0.94
Dashboard /wp-admin2,209 ▲214.84 ▼0.00109.33 ▼6.6139.68 ▼1.59
Posts /wp-admin/edit.php2,095 ▲62.03 ▲0.0041.31 ▲4.7435.88 ▲1.58
Add New Post /wp-admin/post-new.php1,520 ▼1323.02 ▼0.26666.55 ▲65.4151.50 ▼4.12
Media Library /wp-admin/upload.php1,394 ▲64.16 ▼0.0498.24 ▼3.8843.27 ▲1.20
Rollerblade /wp-admin/options-general.php?page=rollerblade9722.0925.9232.70

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: There are too many tags (13 tag instead of maximum 10)
The official readme.txt might help

rollerblade-app/rollerblade.php 69% from 13 tests

"Rollerblade" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("rollerblade-app.php" instead of "rollerblade.php")
  • Domain Path: The domain path folder does not exist ("/lang/")
  • Description: Please don't use more than 140 characters for the plugin description (currently 174 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin10,495 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
SVG7754,679
JavaScript31,2231523,300
CSS3211532,063
PHP1399126453

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity3.92
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods1184.62%
▷ Public methods1184.62%
▷ Protected methods00.00%
▷ Private methods215.38%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/cb-dots.png14.38KB0.28KB▼ 98.08%
img/comment-box-close-sprite.png14.83KB0.38KB▼ 97.42%
css/ui-icons_454545_256x240.png6.83KB4.17KB▼ 38.86%
img/rb-icon-white.png2.13KB1.39KB▼ 34.56%
img/rb-remote-panel-button.png1.09KB0.48KB▼ 55.88%