Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼4.20ms] Passed 4 tests
Analyzing server-side resources used by Neulee API Wordpress plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 40.48 ▼1.03 |
Dashboard /wp-admin | 3.45 ▲0.14 | 42.55 ▼7.86 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 48.75 ▲1.14 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 81.29 ▼8.06 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 36.07 ▲0.14 |
Neulee Account /wp-admin/options-general.php?page=neulee/account | 3.39 | 30.22 |
Neulee Solution /wp-admin/options-general.php?page=neulee/solution | 3.39 | 34.42 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 32 new files
Database: 4 new tables, 6 new options
New tables |
---|
wp_neulee_solutions |
wp_neulee_search |
wp_neulee_packages |
wp_neulee_login |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Neulee API Wordpress plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲77 | 13.58 ▼0.79 | 1.73 ▼0.18 | 41.18 ▼8.21 |
Dashboard /wp-admin | 2,213 ▲25 | 4.84 ▼0.04 | 105.24 ▼11.46 | 39.04 ▼7.28 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 2.02 ▲0.00 | 39.83 ▲1.96 | 35.33 ▼1.94 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.34 ▲0.05 | 629.48 ▼88.19 | 62.37 ▲6.04 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.26 ▼0.03 | 98.63 ▼8.18 | 42.22 ▼6.10 |
Neulee Account /wp-admin/options-general.php?page=neulee/account | 966 | 2.03 | 26.52 | 25.48 |
Neulee Solution /wp-admin/options-general.php?page=neulee/solution | 884 | 2.05 | 23.98 | 34.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The plugin did not uninstall successfully, leaving 4 tables in the database
- wp_neulee_packages
- wp_neulee_login
- wp_neulee_solutions
- wp_neulee_search
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=neulee/solution
- > Notice in wp-content/plugins/neulee/admin/partials/neulee-admin-solution.php+189
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/neulee/includes/class-neulee-activator.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/neulee/admin/partials/neulee-admin-display.php:18
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/neulee/includes/class-neulee-activator.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/neulee/admin/partials/neulee-admin-solution.php:18
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/neulee/includes/class-neulee-activator.php on line 13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: script, style
neulee/neulee.php 92% from 13 tests
"Neulee API Wordpress plugin" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 383 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,276 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 352 | 573 | 1,178 |
CSS | 1 | 11 | 4 | 95 |
JavaScript | 1 | 2 | 27 | 3 |
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.15 |
Average class complexity | 7.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 2 | 5.56% |
▷ Public methods | 31 | 86.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.89% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.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
12 PNG files occupy 0.11MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/images/download.png | 1.20KB | 1.00KB | ▼ 16.98% |
admin/css/images/print.png | 2.47KB | 1.66KB | ▼ 32.70% |
assets/icon-128x128.png | 6.93KB | 3.29KB | ▼ 52.59% |
admin/css/images/error.png | 2.15KB | 1.67KB | ▼ 22.25% |
admin/css/images/info.png | 2.17KB | 1.76KB | ▼ 18.66% |