10% securimage-wp-reg

Code Review | Securimage-WP-REG

WordPress plugin Securimage-WP-REG scored10%from 54 tests.

About plugin

  • Plugin page: securimage-wp-reg
  • Plugin version: 0.04
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2
  • WordPress version: 6.3.1
  • First release: Nov 28, 2013
  • Latest release: Apr 24, 2015
  • Number of updates: 9
  • Update frequency: every 56.8 days
  • Top authors: Jehy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,093 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/securimage-wp-reg/securimage-wp-reg.php+30
    Methods with the same name as their class will not be constructors in a future version of PHP; siwp_reg has a deprecated constructor

Server metrics [RAM: ▲0.00MB] [CPU: ▼9.90ms] Passed 4 tests

This is a short check of server-side resources used by Securimage-WP-REG
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.99 ▼7.30
Dashboard /wp-admin3.31 ▲0.0047.55 ▼8.70
Posts /wp-admin/edit.php3.36 ▲0.0050.67 ▲1.34
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.65 ▼21.45
Media Library /wp-admin/upload.php3.23 ▲0.0036.35 ▼2.16

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Securimage-WP-REG
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.75 ▲0.111.81 ▼0.1646.11 ▼2.59
Dashboard /wp-admin2,198 ▲245.65 ▲0.1084.86 ▼19.0239.94 ▼5.43
Posts /wp-admin/edit.php2,103 ▲32.05 ▲0.0440.03 ▼0.3035.96 ▲0.87
Add New Post /wp-admin/post-new.php1,526 ▼2017.63 ▼5.75651.29 ▼8.9949.70 ▼2.25
Media Library /wp-admin/upload.php1,394 ▼64.20 ▼0.09101.50 ▼7.3444.34 ▼1.03

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

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
Everything seems fine, however 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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/securimage-wp-reg/securimage-wp-reg.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Securimage-WP shown on a register form)
You can take inspiration from this readme.txt

securimage-wp-reg/securimage-wp-reg.php 92% from 13 tests

The main file in "Securimage-WP-REG" v. 0.04 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 259 characters long)

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
No dangerous file extensions were detected35 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1112335

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity5.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%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png27.49KB12.28KB▼ 55.32%