Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Error in wp-content/plugins/near-login/Model/Constructor/Constructor.php+92
Uncaught TypeError: Typed property LNCNearLogin\Model\Constructor\Constructor::$options must be an instance of LNCNearLogin\Model\Constructor\mixed, bool used in wp-content/plugins/near-login/Model/Constructor/Constructor.php:92
Stack trace:
#0 wp-content/plugins/near-login/Model/Constructor/Constructor.php(147): LNCNearLogin\Model\Constructor\Constructor->__construct()
#1 wp-content/plugins/near-login/index.php(20): LNCNearLogin\Model\Constructor\Constructor::getInstance()
#2 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
#3 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.47ms] Passed 4 tests
Analyzing server-side resources used by Login with NEAR
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 33.45 ▼9.19 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.28 ▼11.17 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.11 ▼1.25 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.62 ▼6.08 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.71 ▼3.42 |
Server storage [IO: ▲1.46MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Login with NEAR
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.27 ▼0.49 | 1.63 ▼0.27 | 37.75 ▼4.65 |
Dashboard /wp-admin | 2,198 ▲21 | 5.64 ▲0.10 | 92.77 ▼7.52 | 42.47 ▼2.03 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.02 ▲0.07 | 38.39 ▼3.02 | 35.46 ▼2.09 |
Add New Post /wp-admin/post-new.php | 1,526 ▼10 | 23.22 ▲0.21 | 675.52 ▲30.87 | 54.79 ▲3.65 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.21 ▲0.01 | 97.77 ▲1.83 | 40.24 ▼5.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'LNCNearLogin\\Model\\Abstractions\\AdminPages' not found in wp-content/plugins/near-login/Model/Constructor/ConfigPage.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function LNCNearLogin\\Model\\plugin_dir_path() in wp-content/plugins/near-login/Model/Config.php:75
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Contributors: Plugin contributors field is missing
- Screenshots: Screenshot #2 (Add shortcode to [login_near_link] to any place on your site.) image not found
near-login/index.php 92% from 13 tests
The main file in "Login with NEAR" v. 0.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("near-login.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin3,903 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 2,618 |
PHP | 20 | 233 | 592 | 1,075 |
JavaScript | 4 | 33 | 14 | 210 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 9.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 1 | 7.69% |
▷ Concrete classes | 12 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 83 | |
▷ Static methods | 24 | 28.92% |
▷ Public methods | 73 | 87.95% |
▷ Protected methods | 3 | 3.61% |
▷ Private methods | 7 | 8.43% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.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
7 PNG files occupy 0.29MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-4.png | 53.28KB | 19.92KB | ▼ 62.61% |
assets/banner-772x250.png | 54.24KB | 25.83KB | ▼ 52.37% |
assets/icon-256x256.png | 7.04KB | 3.18KB | ▼ 54.89% |
assets/icon-128x128.png | 4.28KB | 2.10KB | ▼ 50.89% |
assets/screenshot-5.png | 54.08KB | 20.47KB | ▼ 62.15% |