78% private-wp-by-ilusix

Code Review | Ilusix Private WP

WordPress plugin Ilusix Private WP scored78%from 54 tests.

About plugin

  • Plugin page: private-wp-by-ilusix
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3.1
  • WordPress version: 6.3.1
  • First release: Mar 2, 2014
  • Latest release: Sep 29, 2015
  • Number of updates: 16
  • Update frequency: every 36.0 days
  • Top authors: Sjors Roelofs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,527 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.16MB] [CPU: ▼14.94ms] Passed 4 tests

This is a short check of server-side resources used by Ilusix Private WP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▼0.6317.50 ▼28.90
Dashboard /wp-admin3.32 ▼0.0344.36 ▼22.27
Posts /wp-admin/edit.php3.37 ▲0.0150.36 ▲1.85
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.01 ▼10.17
Media Library /wp-admin/upload.php3.24 ▲0.0135.07 ▲1.59
Private WP /wp-admin/options-general.php?page=ilusix-private-wp3.2232.88

Server storage [IO: ▲0.01MB] [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: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Ilusix Private WP
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,431 ▼31514.76 ▲0.590.56 ▼1.235.83 ▼35.65
Dashboard /wp-admin2,212 ▲245.85 ▼0.17106.26 ▼6.8041.72 ▼2.72
Posts /wp-admin/edit.php2,095 ▲62.05 ▲0.0540.89 ▲6.6734.10 ▼3.73
Add New Post /wp-admin/post-new.php1,371 ▼14616.76 ▼0.81507.46 ▼133.7166.80 ▲17.90
Media Library /wp-admin/upload.php1,391 ▼04.20 ▲0.0395.67 ▼5.1344.75 ▲2.47
Private WP /wp-admin/options-general.php?page=ilusix-private-wp8212.0326.1425.67

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 does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/private-wp-by-ilusix/admin/plugin-options.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/private-wp-by-ilusix/ilusix-private-wp.php:56

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=ilusix-private-wp
    • > Javascript (severe) in unknown
    /wp-content/plugins/private-wp-by-ilusix//javascript/admin-javascript.js?ver=6.3.1 20:25 Uncaught TypeError: Cannot read properties of null (reading 'style')

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: private wordpress, login, private access

private-wp-by-ilusix/ilusix-private-wp.php 92% from 13 tests

The main PHP script in "Ilusix Private WP" version 1.3 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("private-wp-by-ilusix.php" instead of "ilusix-private-wp.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
Success! There were no dangerous files found in this plugin98 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2262776
JavaScript15122

PHP code Passed 2 tests

Analyzing 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.42
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected