83% sakura-rs-wp-ssl

Code Review | Easy SSL Plugin for SAKURA Rental Server

WordPress plugin Easy SSL Plugin for SAKURA Rental Server scored 83% from 54 tests.

About plugin

  • Plugin page: sakura-rs-wp-ssl
  • Plugin version: 1.4.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-5.3
  • WordPress version: 6.3.1
  • First release: Apr 13, 2017
  • Latest release: Nov 25, 2019
  • Number of updates: 14
  • Update frequency: every 68.5 days
  • Top authors: sakurainternet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70,000+ active / 148,944 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
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.97ms] Passed 4 tests

An overview of server-side resources used by Easy SSL Plugin for SAKURA Rental Server
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0842.13 ▲3.19
Dashboard /wp-admin3.38 ▲0.0747.33 ▼5.16
Posts /wp-admin/edit.php3.49 ▲0.1347.97 ▲4.25
Add New Post /wp-admin/post-new.php5.98 ▲0.0992.87 ▼9.98
Media Library /wp-admin/upload.php3.30 ▲0.0739.16 ▲4.09
SAKURA RS SSL /wp-admin/options-general.php?page=sakura-admin-menu3.2731.24

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Easy SSL Plugin for SAKURA Rental Server
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6314.78 ▲0.401.77 ▲0.1244.26 ▲2.29
Dashboard /wp-admin2,212 ▲214.92 ▲0.03102.03 ▼1.6240.12 ▼4.47
Posts /wp-admin/edit.php2,101 ▲122.09 ▲0.0938.78 ▲2.6933.77 ▼1.75
Add New Post /wp-admin/post-new.php1,531 ▼1118.50 ▲0.17669.41 ▲29.7560.03 ▲10.34
Media Library /wp-admin/upload.php1,397 ▲94.29 ▲0.05119.48 ▲19.8746.68 ▲5.47
SAKURA RS SSL /wp-admin/options-general.php?page=sakura-admin-menu1,0161.8631.57117.78

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sakura-rs-wp-ssl/sakura-rs-ssl.php:30

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% 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
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (screenshot-1.png) image missing
You can look at the official readme.txt

sakura-rs-wp-ssl/sakura-rs-ssl.php 77% from 13 tests

The main file in "Easy SSL Plugin for SAKURA Rental Server" v. 1.4.0 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:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("sakura-rs-wp-ssl.php" instead of "sakura-rs-ssl.php")
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin483 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP870370440
JavaScript24143

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity8.14
▷ Minimum class complexity2.00
▷ Maximum class complexity35.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods32
▷ Static methods618.75%
▷ Public methods2681.25%
▷ Protected methods00.00%
▷ Private methods618.75%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants337.50%
▷ Class constants562.50%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.23MB with 0.16MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png240.23KB72.30KB▼ 69.90%