Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼3.95ms] Passed 4 tests
Analyzing server-side resources used by Not Sure
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 37.70 ▼0.20 |
Dashboard /wp-admin | 3.40 ▲0.09 | 44.38 ▼7.30 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 46.30 ▼1.02 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 85.64 ▼7.29 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 39.19 ▲3.73 |
Not Sure Buttons /wp-admin/admin.php?page=sp_ns_forms | 3.28 | 35.57 |
About /wp-admin/admin.php?page=sp_ns_about | 3.29 | 30.27 |
Server storage [IO: ▲0.07MB] [DB: ▲0.77MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Not Sure: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲80 | 13.17 ▼1.58 | 1.60 ▲0.04 | 37.67 ▲2.38 |
Dashboard /wp-admin | 2,235 ▲49 | 5.89 ▲1.01 | 98.72 ▼5.34 | 36.10 ▼3.54 |
Posts /wp-admin/edit.php | 2,115 ▲23 | 2.05 ▲0.05 | 35.96 ▼3.18 | 32.42 ▼2.41 |
Add New Post /wp-admin/post-new.php | 1,555 ▲41 | 23.53 ▲6.03 | 613.36 ▼11.66 | 55.30 ▼2.66 |
Media Library /wp-admin/upload.php | 1,411 ▲20 | 4.24 ▼0.02 | 95.18 ▼1.75 | 41.19 ▼3.30 |
Not Sure Buttons /wp-admin/admin.php?page=sp_ns_forms | 924 | 2.04 | 24.59 | 27.05 |
About /wp-admin/admin.php?page=sp_ns_about | 820 | 2.05 | 25.33 | 25.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.78MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/not-sure/css/sp_ns.css.php
- > /wp-content/plugins/not-sure/js/sp_ns.js.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/not-sure/includes/notsure.records.php on line 19
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/not-sure/includes/notsure.records.php on line 19
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/not-sure/includes/notsure.records.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/not-sure/includes/notsure_frontend.php:72
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/not-sure/includes/notsure_admin.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/not-sure/notsure.php:27
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/not-sure/notsure.php on line 26
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: comments, customer not sure, ask a question
not-sure/notsure.php 92% from 13 tests
"Not Sure" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("not-sure.php" instead of "notsure.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,541 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 194 | 250 | 1,538 |
HTML | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 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 | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/close.png | 1.54KB | 1.07KB | ▼ 30.65% |