Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼7.42ms] Passed 4 tests
This is a short check of server-side resources used by Loginstyle
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 39.30 ▲4.85 |
Dashboard /wp-admin | 3.54 ▲0.20 | 44.54 ▼15.17 |
Posts /wp-admin/edit.php | 3.65 ▲0.30 | 48.78 ▲3.86 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.24 | 82.58 ▼21.04 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 37.10 ▲2.67 |
Loginstyle /wp-admin/themes.php?page=loginstyle-settings | 6.52 | 46.30 |
Server storage [IO: ▲8.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 86 new files
Database: no new tables, 7 new options
New WordPress options |
---|
loginstyle_version |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Loginstyle
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲34 | 13.34 ▼1.04 | 1.76 ▼0.23 | 42.91 ▲1.81 |
Dashboard /wp-admin | 2,213 ▲21 | 5.86 ▲0.97 | 94.72 ▼9.91 | 39.45 ▼3.86 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.02 | 39.71 ▲0.49 | 35.40 ▲2.04 |
Add New Post /wp-admin/post-new.php | 1,531 ▲12 | 23.08 ▼0.12 | 682.30 ▲29.58 | 59.61 ▲7.28 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.18 ▼0.06 | 102.19 ▲2.55 | 43.24 ▼0.20 |
Loginstyle /wp-admin/themes.php?page=loginstyle-settings | 12,086 | 5.76 | 253.65 | 76.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/loginstyle/loginstyle.php+80
Trying to access array offset on value of type bool
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- loginstyle_version
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/loginstyle/public/loginstyle-public.php:59
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/loginstyle/loginstyle.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/loginstyle/admin/loginstyle-admin.php:385
- > PHP Warning
Use of undefined constant LOGINSTYLE_URL - assumed 'LOGINSTYLE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/loginstyle/admin/partials/loginstyle-admin-settings-display.php on line 5
- > PHP Warning
Use of undefined constant LOGINSTYLE_URL - assumed 'LOGINSTYLE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/loginstyle/admin/partials/loginstyle-admin-settings-display.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/loginstyle/admin/partials/loginstyle-admin-settings-display.php:11
- > PHP Warning
Use of undefined constant LOGINSTYLE_NAME - assumed 'LOGINSTYLE_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/loginstyle/admin/partials/loginstyle-admin-settings-display.php on line 9
- > PHP Warning
Use of undefined constant LOGINSTYLE_URL - assumed 'LOGINSTYLE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/loginstyle/admin/partials/loginstyle-admin-settings-display.php on line 6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 29 tag instead of maximum 10
loginstyle/loginstyle.php Passed 13 tests
The main file in "Loginstyle" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
62 characters long description:
Beautify, brand and customize your WordPress Admin login page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin18,927 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 15 | 0 | 0 | 13,979 |
PHP | 4 | 224 | 83 | 2,450 |
JavaScript | 8 | 251 | 505 | 893 |
PO File | 1 | 324 | 474 | 717 |
CSS | 1 | 74 | 75 | 712 |
SVG | 1 | 0 | 0 | 176 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
35 compressed PNG files occupy 1.77MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/templates/gorilla.png | 102.13KB | 110.63KB | 0.00% |
admin/imgs/transparency-grid.png | 2.58KB | 2.80KB | 0.00% |
admin/templates/chimera.png | 10.22KB | 10.57KB | 0.00% |
admin/imgs/labyrinth-logo.png | 3.54KB | 3.77KB | 0.00% |
admin/templates/labyrinth.png | 87.19KB | 94.21KB | 0.00% |