Benchmarks
Plugin footprint 65% 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.54MB] [CPU: ▼4.76ms] Passed 4 tests
Analyzing server-side resources used by Licensify
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.08 ▲0.62 | 723.28 ▲682.59 |
Dashboard /wp-admin | 3.88 ▲0.57 | 47.68 ▼3.63 |
Posts /wp-admin/edit.php | 3.93 ▲0.57 | 47.88 ▼3.06 |
Add New Post /wp-admin/post-new.php | 6.40 ▲0.51 | 93.51 ▼13.60 |
Media Library /wp-admin/upload.php | 3.74 ▲0.51 | 36.92 ▲1.25 |
Server storage [IO: ▲1.22MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 22 new files
Database: 1 new table, 6 new options
New tables |
---|
blv_history |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Licensify
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,936 ▲175 | 13.46 ▼0.91 | 13.41 ▲11.79 | 36.11 ▼7.93 |
Dashboard /wp-admin | 2,209 ▲32 | 5.35 ▼0.33 | 72.44 ▼16.38 | 35.61 ▼9.54 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.91 ▼0.11 | 29.69 ▼11.19 | 36.02 ▲0.62 |
Add New Post /wp-admin/post-new.php | 1,542 ▲7 | 23.06 ▲5.00 | 600.28 ▼5.86 | 51.16 ▼22.95 |
Media Library /wp-admin/upload.php | 1,416 ▲13 | 3.98 ▼0.23 | 85.64 ▼12.75 | 39.91 ▼4.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie tables were found after uninstall: 1 table
- blv_history
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
Please fix the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/beauty-license-verification/index.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/beauty-license-verification/functions/settings.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/beauty-license-verification/functions/main.php:27
- > PHP Fatal error
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: store, e-commerce
beauty-license-verification/index.php 92% from 13 tests
The main file in "Licensify" v. 0.35 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("beauty-license-verification.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected28,803 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 3,327 | 2,132 | 15,216 |
CSS | 3 | 197 | 37 | 10,444 |
PHP | 6 | 454 | 103 | 3,141 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 66.80 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 150.00 |
Average method complexity | 4.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 91 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 75 | 82.42% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 17.58% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
functions/img/history.png | 1.41KB | 1.78KB | 0.00% |
functions/img/button.png | 1.40KB | 1.53KB | 0.00% |
functions/img/login.png | 1.58KB | 1.84KB | 0.00% |