Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.37MB] [CPU: ▼0.35ms] Passed 4 tests
An overview of server-side resources used by NumbersQ
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.39 | 40.56 ▼3.01 |
Dashboard /wp-admin | 3.71 ▲0.41 | 50.00 ▼1.47 |
Posts /wp-admin/edit.php | 3.76 ▲0.41 | 55.01 ▲4.77 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.35 | 100.20 ▲5.03 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 38.10 ▼1.68 |
Settings /wp-admin/admin.php?page=numbersq_settings | 3.82 | 36.57 |
Numbers /wp-admin/admin.php?page=numbersq_numbers | 3.55 | 37.85 |
Keys /wp-admin/edit.php?post_type=numbersq_key | 3.68 | 37.92 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for NumbersQ
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.28 ▼0.11 | 1.98 ▲0.49 | 38.48 ▼2.85 |
Dashboard /wp-admin | 2,222 ▲48 | 5.60 ▼0.09 | 83.94 ▼10.12 | 44.66 ▲0.42 |
Posts /wp-admin/edit.php | 2,130 ▲30 | 2.01 ▼0.01 | 41.33 ▼0.12 | 37.67 ▲1.63 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.28 ▲0.12 | 613.62 ▼94.57 | 57.85 ▼7.28 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.21 ▲0.10 | 99.25 ▼18.91 | 42.78 ▼2.35 |
Settings /wp-admin/admin.php?page=numbersq_settings | 3,356 | 2.04 | 26.19 | 29.34 |
Numbers /wp-admin/admin.php?page=numbersq_numbers | 943 | 2.00 | 25.69 | 30.11 |
Keys /wp-admin/edit.php?post_type=numbersq_key | 1,080 | 1.95 | 32.11 | 29.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/numbersq/views/admin_settings.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/numbersq/views/admin_numbers.php:1
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: revenue, woocommerce, numbers, statistics, report...
numbersq/main.php 92% from 13 tests
The main PHP file in "NumbersQ" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("numbersq.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected2,166 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 317 | 111 | 2,031 |
JavaScript | 2 | 17 | 3 | 121 |
CSS | 1 | 2 | 0 | 14 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 15.12 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 119.00 |
Average method complexity | 3.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 85 | |
▷ Static methods | 36 | 42.35% |
▷ Public methods | 84 | 98.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.18% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin