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.65MB] [CPU: ▼14.41ms] Passed 4 tests
This is a short check of server-side resources used by Numbers generator and validator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.97 ▲0.21 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.10 ▼1.22 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 48.88 ▼0.94 |
Add New Post /wp-admin/post-new.php | 3.19 ▼2.69 | 36.41 ▼55.69 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 41.45 ▲8.56 |
Numbers Validator /wp-admin/tools.php?page=my-unique-identifier | 3.28 | 37.27 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
NumbersValidator_version |
NumbersValidator_your_checked_tables |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Numbers generator and validator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲106 | 13.72 ▼0.67 | 1.83 ▲0.05 | 41.39 ▼4.33 |
Dashboard /wp-admin | 2,217 ▲62 | 4.88 ▼0.82 | 107.94 ▲8.13 | 42.97 ▲1.44 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.04 ▲0.01 | 39.15 ▼1.27 | 34.51 ▼1.41 |
Add New Post /wp-admin/post-new.php | 1,521 ▼12 | 23.53 ▲0.41 | 683.96 ▼0.94 | 52.19 ▲4.39 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.29 ▼0.11 | 95.21 ▼7.25 | 44.56 ▲1.56 |
Numbers Validator /wp-admin/tools.php?page=my-unique-identifier | 1,578 | 1.72 | 32.61 | 46.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-posts
- NumbersValidator_your_checked_tables
- widget_recent-comments
- can_compress_scripts
- NumbersValidator_version
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/numbers-generator-and-validator/src/templates/template-generator.php
- 6× PHP files trigger server errors when accessed directly:
- > PHP Warning
require_once(NGV_PATH/src/classes/class-storage.php): failed to open stream: No such file or directory in wp-content/plugins/numbers-generator-and-validator/src/classes/class-admin.php on line 10
- > PHP Fatal error
require_once(): Failed opening required 'NGV_PATH/src/classes/class-storage.php' (include_path='.:/usr/share/php') in wp-content/plugins/numbers-generator-and-validator/src/classes/class-admin.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function update_option() in wp-content/plugins/numbers-generator-and-validator/src/classes/ngv-settings.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/numbers-generator-and-validator/src/views/template-generator.php:13
- > PHP Warning
Use of undefined constant NGV_PATH - assumed 'NGV_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/numbers-generator-and-validator/src/classes/class-admin.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/numbers-generator-and-validator/src/endpoints.php:15
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Contributors: The plugin contributors field is missing
numbers-generator-and-validator/ngav.php 92% from 13 tests
The main PHP file in "Numbers generator and validator" ver. 2.0.8 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("numbers-generator-and-validator.php" instead of "ngav.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected3,504 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 436 | 150 | 1,640 |
JavaScript | 7 | 281 | 255 | 1,251 |
Sass | 1 | 72 | 0 | 297 |
CSS | 2 | 68 | 19 | 296 |
JSON | 1 | 0 | 0 | 19 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 17.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 4.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 60.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 39.53% |
Functions | 18 | |
▷ Named functions | 16 | 88.89% |
▷ Anonymous functions | 2 | 11.11% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin