10% rim-signature

Code Review | Rim Signature

WordPress plugin Rim Signature scored10%from 54 tests.

About plugin

  • Plugin page: rim-signature
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-2.5
  • WordPress version: 6.3.1
  • First release: Aug 20, 2013
  • Latest release: Aug 20, 2013
  • Number of updates: 12
  • Update frequency: every 0.2 days
  • Top authors: Rimaz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,534 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'rim_sing_activation' not found or invalid function name

Server metrics [RAM: ▼0.67MB] [CPU: ▼20.95ms] Passed 4 tests

A check of server-side resources used by Rim Signature
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.36 ▲4.73
Dashboard /wp-admin3.34 ▼0.0046.05 ▼17.57
Posts /wp-admin/edit.php3.40 ▲0.0443.77 ▼5.01
Add New Post /wp-admin/post-new.php3.13 ▼2.7633.05 ▼63.13
Media Library /wp-admin/upload.php3.27 ▲0.0437.13 ▲1.90
Add New /wp-admin/post-new.php?post_type=rimaz_signature3.1330.87
Rim Signature /wp-admin/edit.php?post_type=rimaz_signature3.3136.16

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Rim Signature
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲7514.28 ▼0.161.72 ▲0.0943.80 ▼1.24
Dashboard /wp-admin2,225 ▲455.56 ▼0.1085.25 ▼3.9436.09 ▼6.85
Posts /wp-admin/edit.php2,127 ▲242.07 ▲0.0537.53 ▲0.1933.43 ▼5.76
Add New Post /wp-admin/post-new.php1,557 ▲2217.89 ▼0.24615.01 ▼28.9784.04 ▲11.20
Media Library /wp-admin/upload.php1,427 ▲304.21 ▲0.02101.77 ▲1.7942.62 ▼4.37
Add New /wp-admin/post-new.php?post_type=rimaz_signature2,2247.62165.6367.70
Rim Signature /wp-admin/edit.php?post_type=rimaz_signature1,1081.9334.8330.96

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The plugin did not uninstall gracefully
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'rim_sing_deactivation' not found or invalid function name
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/post-new.php?post_type=rimaz_signature
    • > Notice in wp-content/plugins/rim-signature/rim_sing.php+172
    Undefined index: rim_signature_box_nonce
    • > GET request to /wp-admin/post-new.php?post_type=rimaz_signature
    • > Notice in wp-content/plugins/rim-signature/rim_sing.php+157
    Undefined offset: 0

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/rim-signature/rim_sing.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === rim-signature === )
The official readme.txt might help

rim-signature/rim_sing.php 85% from 13 tests

The main PHP script in "Rim Signature" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 285 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("rim-signature.php" instead of "rim_sing.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected442 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
SVG100284
PHP16428103
CSS292543
JavaScript241112

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/singnature.png20.50KB1.58KB▼ 92.30%
img/pagination.png1.36KB0.58KB▼ 57.53%