90% nelio-unlocker

Code Review | Nelio Unlocker - Importer

WordPress plugin Nelio Unlocker - Importer scored90%from 54 tests.

About plugin

  • Plugin page: nelio-unlocker
  • Plugin version: 2.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.3
  • WordPress version: 6.3.1
  • First release: Jan 8, 2021
  • Latest release: Jul 24, 2023
  • Number of updates: 12
  • Update frequency: every 77.5 days
  • Top authors: davilera (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,582 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.23ms] Passed 4 tests

Server-side resources used by Nelio Unlocker - Importer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.27 ▼0.55
Dashboard /wp-admin3.32 ▼0.0343.16 ▼11.25
Posts /wp-admin/edit.php3.43 ▲0.0744.40 ▼1.73
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.62 ▼11.40
Media Library /wp-admin/upload.php3.24 ▲0.0135.78 ▲1.13

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Nelio Unlocker - Importer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.07 ▼0.421.70 ▲0.0543.52 ▲0.90
Dashboard /wp-admin2,195 ▲145.51 ▼0.2081.59 ▼17.6938.82 ▼3.47
Posts /wp-admin/edit.php2,103 ▲32.04 ▲0.0934.05 ▼2.7230.77 ▼4.01
Add New Post /wp-admin/post-new.php1,526 ▼1023.40 ▲5.37674.70 ▲42.2563.98 ▲6.76
Media Library /wp-admin/upload.php1,400 ▼34.17 ▼0.0193.51 ▼7.8346.61 ▲1.97

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
5 plugin tags: gutenberg, lockin, migration, conversion, page builder

nelio-unlocker/nelio-unlocker.php Passed 13 tests

The main PHP script in "Nelio Unlocker - Importer" version 2.0.2 is automatically included on every request by WordPress
49 characters long description:
Transform web pages into WordPress page builders.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,091 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP183103701,057
JavaScript13134

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity12.30
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods73
▷ Static methods1013.70%
▷ Public methods5169.86%
▷ Protected methods00.00%
▷ Private methods2230.14%
Functions11
▷ Named functions981.82%
▷ Anonymous functions218.18%
Constants1
▷ Global constants1100.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