89% redlaxia

Code Review | Redlaxia

WordPress plugin Redlaxia scored89%from 54 tests.

About plugin

  • Plugin page: redlaxia
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 13, 2022
  • Latest release: Nov 7, 2022
  • Number of updates: 8
  • Update frequency: every 19.0 days
  • Top authors: senciya (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /294 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.58MB] [CPU: ▼12.24ms] Passed 4 tests

This is a short check of server-side resources used by Redlaxia
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0937.32 ▼2.40
Dashboard /wp-admin3.42 ▲0.1149.34 ▲5.17
Posts /wp-admin/edit.php3.53 ▲0.1754.77 ▲13.31
Add New Post /wp-admin/post-new.php3.27 ▼2.6237.51 ▼56.64
Media Library /wp-admin/upload.php3.32 ▲0.0936.27 ▲4.91

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Redlaxia
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,950 ▲20414.73 ▲0.501.57 ▼0.2036.36 ▼11.82
Dashboard /wp-admin2,341 ▲1536.49 ▲0.48132.06 ▲28.3877.18 ▲40.72
Posts /wp-admin/edit.php2,262 ▲1733.37 ▲1.3849.42 ▲9.5475.88 ▲39.10
Add New Post /wp-admin/post-new.php1,531 ▼223.14 ▼0.07668.25 ▲39.4835.91 ▼9.59
Media Library /wp-admin/upload.php1,395 ▲104.05 ▼0.1980.18 ▼18.7285.70 ▲42.77

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Please a description for screenshot #1 in redlaxia/assets to your readme.txt
  • Requires at least: Invalid plugin version format
You can take inspiration from this readme.txt

redlaxia/redlaxia.php 85% from 13 tests

The principal PHP file in "Redlaxia" v. 1.0.5 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
Good job! No executable or dangerous file extensions detected877 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP99399857
JavaScript17420

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions1982.61%
▷ Anonymous functions417.39%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.75MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo-r.png1.60KB0.86KB▼ 46.09%
images/noimage.png4.71KB4.68KB▼ 0.54%
images/logo-r-menu.png3.03KB0.53KB▼ 82.42%
images/example.png739.46KB203.64KB▼ 72.46%
images/no-img.png16.28KB8.53KB▼ 47.62%