Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼296.52ms] Passed 4 tests
An overview of server-side resources used by ZM Ajax Login & Register
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.18 | 57.80 ▲9.91 |
Dashboard /wp-admin | 3.58 ▲0.17 | 36.02 ▲2.48 |
Posts /wp-admin/edit.php | 3.81 ▲0.17 | 39.67 ▲1.98 |
Add New Post /wp-admin/post-new.php | 7.12 ▲0.15 | 98.14 ▼1,186.04 |
Media Library /wp-admin/upload.php | 3.53 ▲0.23 | 28.31 ▼4.48 |
AJAX Login & Register /wp-admin/options-general.php?page=zm_alr | 3.50 | 26.55 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 70 new files
Database: no new tables, 2 new options
New WordPress options |
---|
ajax_login_register_plugin_notice_shown |
zm_alr_version |
Browser metrics Passed 4 tests
ZM Ajax Login & Register: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,036 ▲282 | 17.49 ▲1.75 | 30.68 ▲24.99 | 24.55 ▲22.12 |
Dashboard /wp-admin | 2,906 ▲45 | 6.14 ▼0.19 | 112.01 ▼21.69 | 156.39 ▼3.78 |
Posts /wp-admin/edit.php | 2,705 ▲11 | 3.24 ▲0.00 | 62.37 ▲0.90 | 142.57 ▲0.93 |
Add New Post /wp-admin/post-new.php | 1,670 ▼103 | 16.05 ▼5.31 | 403.69 ▼57.11 | 155.63 ▼4.49 |
Media Library /wp-admin/upload.php | 1,712 ▲14 | 5.58 ▲0.04 | 136.32 ▼16.72 | 182.35 ▼10.10 |
AJAX Login & Register /wp-admin/options-general.php?page=zm_alr | 1,138 | 2.42 | 54.63 | 120.17 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 1 option in the database
- zm_alr_version
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
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
Please fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/zm-ajax-login-register/plugin.php:13
- > PHP Fatal error
Uncaught Error: Class 'Lumber' not found in wp-content/plugins/zm-ajax-login-register/lib/quilt/quilt.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/zm-ajax-login-register/deprecated.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
zm-ajax-login-register/plugin.php 92% from 13 tests
The main file in "ZM Ajax Login & Register" v. 2.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("zm-ajax-login-register.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected7,423 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 18 | 1,578 | 2,772 | 3,480 |
PHP | 16 | 1,255 | 1,470 | 2,793 |
JavaScript | 5 | 147 | 87 | 418 |
CSS | 4 | 76 | 10 | 378 |
Markdown | 3 | 63 | 0 | 354 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 26.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 149.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 1 | 7.69% |
▷ Concrete classes | 12 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 136 | |
▷ Static methods | 1 | 0.74% |
▷ Public methods | 136 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/fb-icon.png | 0.48KB | 0.77KB | 0.00% |
assets/images/facebook-screen-grab.png | 9.08KB | 2.87KB | ▼ 68.36% |
assets/images/rectangular-banner-240x400.png | 9.49KB | 8.16KB | ▼ 13.96% |