84% radical

Code Review | Radical

WordPress plugin Radical scored84%from 54 tests.

About plugin

  • Plugin page: radical
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.8
  • WordPress version: 6.3.1
  • First release: Dec 31, 2021
  • Latest release: Dec 31, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: carlitoxenlaweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /264 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by Radical
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.03 ▲4.20
Dashboard /wp-admin3.26 ▼0.0444.85 ▼2.60
Posts /wp-admin/edit.php3.36 ▲0.0043.80 ▼8.77
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.22 ▼18.34
Media Library /wp-admin/upload.php3.23 ▲0.0034.75 ▲2.65

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Radical
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,320 ▼42614.76 ▲0.121.72 ▲0.0945.90 ▲2.27
Dashboard /wp-admin1,739 ▼4495.68 ▲0.79105.78 ▼2.2943.17 ▼1.87
Posts /wp-admin/edit.php2,087 ▼52.03 ▲0.0233.60 ▼7.3333.19 ▼2.49
Add New Post /wp-admin/post-new.php1,519 ▼1723.17 ▼0.23659.56 ▲14.9554.31 ▲4.36
Media Library /wp-admin/upload.php1,388 ▼04.24 ▲0.02102.69 ▼5.4846.77 ▲5.47

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/radical/radical.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: anti-spam, block spam comments

radical/radical.php Passed 13 tests

Analyzing the main PHP file in "Radical" version 1.0
34 characters long description:
Use Radical to block spam comments

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
Everything looks great! No dangerous files found in this plugin52 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP28852

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin