89% rhythms

Code Review | Rhythms

WordPress plugin Rhythms scored89%from 54 tests.

About plugin

  • Plugin page: rhythms
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.2-4.7.4
  • WordPress version: 6.3.1
  • First release: May 13, 2017
  • Latest release: Jun 11, 2017
  • Number of updates: 10
  • Update frequency: every 3.5 days
  • Top authors: thomasplevy (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /828 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Analyzing server-side resources used by Rhythms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.84 ▼2.58
Dashboard /wp-admin3.33 ▲0.0346.09 ▼8.11
Posts /wp-admin/edit.php3.38 ▲0.0246.37 ▲0.73
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.88 ▲0.79
Media Library /wp-admin/upload.php3.25 ▲0.0234.87 ▼3.04

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Rhythms
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲10613.26 ▼1.131.79 ▼0.0042.57 ▼1.87
Dashboard /wp-admin2,222 ▲345.87 ▼0.05108.37 ▼5.7941.09 ▼3.49
Posts /wp-admin/edit.php2,105 ▲162.05 ▲0.0540.04 ▲6.0133.65 ▲0.66
Add New Post /wp-admin/post-new.php1,546 ▲1323.39 ▲0.52610.22 ▼53.2647.42 ▼7.25
Media Library /wp-admin/upload.php1,404 ▲164.19 ▼0.0595.95 ▼21.4042.97 ▼7.95

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
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
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 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
2 plugin tags: reading optimization, speed reading

rhythms/rhythms.php 85% from 13 tests

The main PHP script in "Rhythms" version 1.1.2 is automatically included on every request by WordPress
You should first fix the following items:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.7.4" instead of "4.7.2")
  • Description: Keep the plugin description shorter than 140 characters (currently 195 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin334 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4142280334

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.27
Average class complexity8.00
▷ Minimum class complexity6.00
▷ Maximum class complexity9.00
Average method complexity1.76
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods37
▷ Static methods12.70%
▷ Public methods2670.27%
▷ Protected methods00.00%
▷ Private methods1129.73%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin