10% radiatedtwixel

Code Review | RadiatedTwixel

WordPress plugin RadiatedTwixel scored10%from 54 tests.

About plugin

  • Plugin page: radiatedtwixel
  • Plugin version: 0.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Jan 27, 2013
  • Latest release: May 18, 2013
  • Number of updates: 9
  • Update frequency: every 12.3 days
  • Top authors: radiatedpixel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /744 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/radiatedtwixel/radiatedtwixel.php+167
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼51.02ms] Passed 4 tests

Server-side resources used by RadiatedTwixel
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.83 ▼36.31
Dashboard /wp-admin2.05 ▼1.267.19 ▼44.75
Posts /wp-admin/edit.php2.05 ▼1.316.25 ▼41.84
Add New Post /wp-admin/post-new.php2.05 ▼3.846.19 ▼81.16
Media Library /wp-admin/upload.php2.05 ▼1.185.18 ▼27.25

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_radiatedtwixel
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

RadiatedTwixel: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.135.79 ▲3.9544.90 ▼0.47
Dashboard /wp-admin2,206 ▲215.11 ▲0.21108.37 ▼6.2737.29 ▼8.60
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0038.39 ▲1.1333.39 ▼0.17
Add New Post /wp-admin/post-new.php1,538 ▲522.96 ▼0.13582.47 ▼77.1856.60 ▼7.09
Media Library /wp-admin/upload.php1,388 ▲34.17 ▼0.01101.49 ▲1.7246.93 ▲2.81

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/radiatedtwixel/radiatedtwixel.php+167
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_radiatedtwixel
    • 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 no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/radiatedtwixel/tags/0.2.1/radiatedtwixel.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/radiatedtwixel/radiatedtwixel.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/radiatedtwixel/tags/0.1/radiatedtwixel.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/radiatedtwixel/tags/0.2/radiatedtwixel.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/radiatedtwixel/tags/0.2.2/radiatedtwixel.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (http://www.radiatedpixel.com/downloads/misc/twixelunstyled.png), #2 (http://www.radiatedpixel.com/downloads/misc/twixelrp.png)
You can take inspiration from this readme.txt

radiatedtwixel/radiatedtwixel.php 92% from 13 tests

The main PHP file in "RadiatedTwixel" ver. 0.2.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 471 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected532 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP44081532

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods35
▷ Static methods00.00%
▷ Public methods35100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin