83% replain

Code Review | Replain

WordPress plugin Replain scored83%from 54 tests.

About plugin

  • Plugin page: replain
  • Plugin version: 1.9.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.5.3
  • WordPress version: 6.3.1
  • First release: Feb 9, 2018
  • Latest release: Nov 2, 2020
  • Number of updates: 32
  • Update frequency: every 31.2 days
  • Top authors: deformator (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

1,000+ active /12,736 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.39ms] Passed 4 tests

Server-side resources used by Replain
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0342.32 ▼2.94
Dashboard /wp-admin3.34 ▲0.0351.16 ▼4.16
Posts /wp-admin/edit.php3.39 ▲0.0353.71 ▲2.39
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.81 ▼8.86
Media Library /wp-admin/upload.php3.26 ▲0.0340.74 ▲6.48
Re:plain /wp-admin/options-general.php?page=replain3.2333.55

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
widget_recent-comments
replain_enabled
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
replain_code
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Replain
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7214.24 ▼0.091.88 ▲0.1347.14 ▲2.25
Dashboard /wp-admin2,224 ▲465.54 ▼0.0886.31 ▼30.1544.17 ▼0.80
Posts /wp-admin/edit.php2,138 ▲381.98 ▲0.0038.48 ▲2.2733.41 ▼1.51
Add New Post /wp-admin/post-new.php1,551 ▲2322.88 ▼0.37654.67 ▼6.4466.70 ▲9.95
Media Library /wp-admin/upload.php1,435 ▲354.24 ▲0.0498.32 ▼7.4048.72 ▲3.11
Re:plain /wp-admin/options-general.php?page=replain8441.9928.3039.33

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 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 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/replain/replain.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6, #7, #8 in replain/assets to your readme.txt
  • Contributors: Plugin contributors not specified
The official readme.txt might help

replain/replain.php 92% from 13 tests

The primary PHP file in "Replain" version 1.9.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 179 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected348 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PO File45866168
PHP15225143
CSS12022
SVG10115

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png62.79KB18.21KB▼ 70.99%
assets/icon-128x128.png23.11KB6.72KB▼ 70.93%