68% roombeats

Code Review | Roombeats Plugin

WordPress plugin Roombeats Plugin scored68%from 54 tests.

About plugin

  • Plugin page: roombeats
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-3.4.2
  • WordPress version: 6.3.1
  • First release: Dec 24, 2012
  • Latest release: Feb 12, 2013
  • Number of updates: 4
  • Update frequency: every 13.0 days
  • Top authors: kajaman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /790 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.88MB] [CPU: ▼35.59ms] Passed 4 tests

Analyzing server-side resources used by Roombeats Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.0248.27 ▲0.18
Dashboard /wp-admin3.34 ▼0.2328.91 ▼28.49
Posts /wp-admin/edit.php3.34 ▼0.3428.51 ▼22.21
Add New Post /wp-admin/post-new.php3.34 ▼2.8124.89 ▼74.82
Media Library /wp-admin/upload.php3.34 ▼0.1525.71 ▼16.83

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Roombeats Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.40 ▲0.091.88 ▼0.1838.01 ▼7.78
Dashboard /wp-admin2,199 ▲195.63 ▲0.0191.91 ▼0.0338.99 ▼7.08
Posts /wp-admin/edit.php2,104 ▲42.04 ▲0.0440.19 ▲3.8736.66 ▲3.25
Add New Post /wp-admin/post-new.php1,535 ▲423.08 ▼0.54581.84 ▼103.2348.13 ▼4.68
Media Library /wp-admin/upload.php1,407 ▲74.29 ▲0.0797.76 ▼7.1346.27 ▲3.60
Roombeats /wp-admin/roombeats.php260.440.1114.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method adminroombeats::addConfigPage() should not be called statically
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/roombeats/roombeats.php:146

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/roombeats.php
    • > Network (severe)
    wp-admin/roombeats.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 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
5 plugin tags: statistics, images tagging, stats, analytics, advertisements

roombeats/roombeats.php 92% from 13 tests

"Roombeats Plugin" version 0.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 205 characters long)

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
Success! There were no dangerous files found in this plugin123 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11810123

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity10.50
▷ Minimum class complexity5.00
▷ Maximum class complexity16.00
Average method complexity7.33
▷ Minimum method complexity2.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
There are no PNG files in this plugin