Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼2.31ms] Passed 4 tests
An overview of server-side resources used by pqInternet's NextGEN Database Analysis and Clean-up Tool
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 44.89 ▼2.82 |
Dashboard /wp-admin | 3.43 ▲0.12 | 50.39 ▼5.83 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 58.42 ▲8.79 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 98.67 ▼2.32 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 39.15 ▲1.73 |
NextGen Gallery DB Clean /wp-admin/tools.php?page=pqNGDBCLean | 3.33 | 35.49 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by pqInternet's NextGEN Database Analysis and Clean-up Tool
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲4 | 13.23 ▼1.19 | 1.75 ▼0.08 | 38.74 ▼4.42 |
Dashboard /wp-admin | 2,210 ▲7 | 4.84 ▼1.01 | 108.69 ▼1.83 | 44.34 ▲1.63 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.05 ▲0.03 | 39.23 ▼5.51 | 34.88 ▼0.48 |
Add New Post /wp-admin/post-new.php | 1,536 ▼1 | 23.34 ▲0.09 | 649.88 ▲1.80 | 47.86 ▼12.70 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.23 ▲0.05 | 98.81 ▼6.49 | 41.15 ▼4.02 |
NextGen Gallery DB Clean /wp-admin/tools.php?page=pqNGDBCLean | 827 | 2.03 | 23.49 | 44.88 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
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
Good news, no errors were detected
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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/pqinternets-nextgen-database-analysis-and-clean-up-tool/pqNGDBClean.php:11
- > PHP Fatal error
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 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
2 plugin tags: nextgen, ngg
pqinternets-nextgen-database-analysis-and-clean-up-tool/pqNGDBClean.php 85% from 13 tests
"pqInternet's NextGEN Database Analysis and Clean-up Tool" version 0.02'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:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pqinternets-nextgen-database-analysis-and-clean-up-tool.php" instead of "pqNGDBClean.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 264 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin610 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 14 | 110 | 518 |
JavaScript | 1 | 7 | 16 | 92 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/Internet-Business-and-More-400x150.png | 37.21KB | 12.14KB | ▼ 67.38% |