83% content-randomizer-free

Code Review | Content Randomizer FREE

WordPress plugin Content Randomizer FREE scored 83% from 54 tests.

About plugin

  • Plugin page: content-randomize...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.3
  • WordPress version: 6.3.1
  • First release: Feb 1, 2016
  • Latest release: Apr 17, 2017
  • Number of updates: 11
  • Update frequency: every 40.3 days
  • Top authors: DavyH (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,403 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.28ms] Passed 4 tests

This is a short check of server-side resources used by Content Randomizer FREE
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.91 ▼6.50
Dashboard /wp-admin3.32 ▲0.0146.75 ▼0.59
Posts /wp-admin/edit.php3.37 ▲0.0149.38 ▼1.19
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.84 ▼8.82
Media Library /wp-admin/upload.php3.24 ▲0.0139.92 ▲4.19
Content Randomizer /wp-admin/options-general.php?page=content-randomizer3.2130.56

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Content Randomizer FREE
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.22 ▼1.052.08 ▲0.0542.90 ▲4.11
Dashboard /wp-admin2,210 ▲195.87 ▲1.00107.62 ▼2.5848.30 ▲2.10
Posts /wp-admin/edit.php2,093 ▲11.99 ▼0.0239.89 ▲0.5335.31 ▼3.40
Add New Post /wp-admin/post-new.php1,671 ▲15722.22 ▲4.73659.26 ▼14.7452.06 ▼3.51
Media Library /wp-admin/upload.php1,392 ▲44.24 ▲0.0697.49 ▼1.7741.89 ▼5.63
Content Randomizer /wp-admin/options-general.php?page=content-randomizer8512.0523.8230.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/content-randomizer-free/content-randomizer-free.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Showing raw content and [gen] shortcode.), #2 (Showing output of content after being processed.), #3 (Showing back end settings page of plugin.)
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === content-randomizer-free === )
You can look at the official readme.txt

content-randomizer-free/content-randomizer-free.php 92% from 13 tests

This is the main PHP file of "Content Randomizer FREE" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 143 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin74 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1222574

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.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
No PNG images were found in this plugin