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
Installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▲1.92ms] Passed 4 tests
Server-side resources used by Login Page Editor
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 40.79 ▼2.52 |
Dashboard /wp-admin | 3.49 ▲0.19 | 53.01 ▲3.82 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 60.55 ▲11.36 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 89.51 ▼0.63 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 40.07 ▲7.00 |
Login Page Editor /wp-admin/options-general.php?page=login-page-editor | 3.43 | 34.41 |
Server storage [IO: ▲13.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Login Page Editor
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,156 ▲399 | 33.96 ▲19.34 | 1.60 ▼0.46 | 38.91 ▼13.35 |
Dashboard /wp-admin | 2,559 ▲371 | 27.67 ▲22.79 | 224.24 ▲109.48 | 46.84 ▼2.17 |
Posts /wp-admin/edit.php | 2,429 ▲343 | 24.02 ▲21.89 | 132.36 ▲97.01 | 33.49 ▼1.68 |
Add New Post /wp-admin/post-new.php | 6,633 ▲5,114 | 45.33 ▲21.98 | 937.32 ▲270.47 | 34.69 ▼18.26 |
Media Library /wp-admin/upload.php | 1,635 ▲247 | 25.05 ▲20.84 | 173.37 ▲75.66 | 47.74 ▲0.83 |
Login Page Editor /wp-admin/options-general.php?page=login-page-editor | 2,388 | 20.74 | 252.88 | 86.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=login-page-editor
- > Notice in wp-content/plugins/login-page-editor/render/partial/login-preview.php+59
Undefined variable: formpadding
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=login-page-editor
- > Notice in wp-content/plugins/login-page-editor/class/devotion.class.php+338
Undefined index: preview
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=login-page-editor
- > Notice in wp-content/plugins/login-page-editor/class/devotion.class.php+356
Undefined variable: default
- 9 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=login-page-editor
- > Notice in wp-content/plugins/login-page-editor/class/devotion.class.php+305
Undefined index: parent
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=login-page-editor
- > Notice in wp-content/plugins/login-page-editor/class/devotion.class.php+395
Undefined index: required
- > GET request to /wp-admin/options-general.php?page=login-page-editor
- > Notice in wp-content/plugins/login-page-editor/class/devotion.class.php+245
Undefined index: status
- > GET request to /wp-admin/options-general.php?page=login-page-editor
- > Notice in wp-content/plugins/login-page-editor/class/devotion.class.php+264
Undefined index: live
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=login-page-editor
- > Notice in wp-content/plugins/login-page-editor/class/devotion.class.php+306
Undefined index: parentValue
SRP 0% 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
Please fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/login-page-editor/includes/footer.php
- > /wp-content/plugins/login-page-editor/login-page-editor.php
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/login-page-editor/includes/menus.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/login-page-editor/includes/scripts.php:14
- > PHP Fatal error
Uncaught Error: Call to a member function previewOpts() on null in wp-content/plugins/login-page-editor/render/partial/login-preview.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/login-page-editor/includes/header.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/login-page-editor/includes/vars.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/login-page-editor/class/devotion.core.class.php:10
- > PHP Notice
Undefined variable: dv in wp-content/plugins/login-page-editor/render/partial/login-preview.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
login-page-editor/login-page-editor.php 92% from 13 tests
The main PHP file in "Login Page Editor" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 261 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin3,932 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Sass | 3 | 44 | 0 | 1,250 |
CSS | 2 | 41 | 49 | 1,225 |
PHP | 13 | 67 | 28 | 1,127 |
JavaScript | 4 | 13 | 9 | 274 |
SVG | 1 | 0 | 0 | 56 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 27.67 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 4.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/ecologi-logo.png | 22.72KB | 10.79KB | ▼ 52.50% |
assets/img/devotion-wplogin-trans.png | 17.62KB | 7.24KB | ▼ 58.92% |
assets/img/w-logo-blue.png | 3.04KB | 3.09KB | 0.00% |