90% roojoom

Code Review | Roojoom

WordPress plugin Roojoom scored90%from 54 tests.

About plugin

  • Plugin page: roojoom
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.5
  • WordPress version: 6.3.1
  • First release: Jun 28, 2015
  • Latest release: Apr 4, 2016
  • Number of updates: 20
  • Update frequency: every 28.1 days
  • Top authors: ramiy (95%)roojoom (10%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,366 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Roojoom
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.43 ▲2.31
Dashboard /wp-admin3.33 ▼0.0142.20 ▼18.84
Posts /wp-admin/edit.php3.38 ▲0.0344.93 ▼0.06
Add New Post /wp-admin/post-new.php5.91 ▲0.0388.74 ▼4.50
Media Library /wp-admin/upload.php3.25 ▲0.0334.89 ▲1.80
Roojoom /wp-admin/options-general.php?page=roojoom3.2229.64

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options
widget_roojoom
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Roojoom: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.12 ▼1.551.57 ▼0.1142.32 ▲0.23
Dashboard /wp-admin2,210 ▲215.84 ▲0.9295.53 ▼19.0538.82 ▼2.12
Posts /wp-admin/edit.php2,096 ▲42.04 ▲0.0538.84 ▲0.9934.61 ▲1.56
Add New Post /wp-admin/post-new.php1,536 ▼023.07 ▼0.30595.24 ▼74.9950.80 ▼4.63
Media Library /wp-admin/upload.php1,392 ▲44.17 ▼0.0694.58 ▼4.2640.71 ▼2.23
Roojoom /wp-admin/options-general.php?page=roojoom8542.1526.2927.27

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_roojoom
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: oembed, roojoom, shortcode, embed

roojoom/index.php 92% from 13 tests

The main file in "Roojoom" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("roojoom.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin388 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP10149183388

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity7.25
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity4.12
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods16
▷ Static methods425.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions31
▷ Named functions31100.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
6 PNG files occupy 0.35MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png25.11KB7.75KB▼ 69.16%
screenshot-5.png110.12KB35.50KB▼ 67.76%
screenshot-3.png88.96KB28.17KB▼ 68.34%
screenshot-1.png101.49KB32.44KB▼ 68.04%
screenshot-4.png28.90KB9.31KB▼ 67.79%