Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.52ms] Passed 4 tests
An overview of server-side resources used by Advanced What should we write next about
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.54 ▼5.79 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.50 ▼3.06 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 51.04 ▲2.86 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 93.48 ▼8.07 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.65 ▲5.85 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_awtw_plugin |
New WordPress options |
---|
awtw_plugin_db_version |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
awtw_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Advanced What should we write next about
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲47 | 14.37 ▼0.04 | 1.85 ▼0.09 | 43.52 ▲0.94 |
Dashboard /wp-admin | 2,217 ▲43 | 5.63 ▼0.22 | 86.19 ▼13.51 | 39.65 ▼5.06 |
Posts /wp-admin/edit.php | 2,122 ▲19 | 2.02 ▲0.05 | 44.70 ▲0.02 | 37.70 ▼5.89 |
Add New Post /wp-admin/post-new.php | 1,547 ▲10 | 22.95 ▲4.61 | 653.01 ▲16.32 | 54.21 ▼12.26 |
Media Library /wp-admin/upload.php | 1,416 ▲19 | 4.16 ▼0.05 | 106.36 ▼2.54 | 47.39 ▲3.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_awtw_plugin
- Zombie WordPress options were found after uninstall: 8 options
- can_compress_scripts
- widget_theysaidso_widget
- awtw_options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- awtw_plugin_db_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% 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
Please fix the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > 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/advanced-what-should-we-write-about-next/awtw-table.php on line 49
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/advanced-what-should-we-write-about-next/awtw-plugin.php:54
- > 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/advanced-what-should-we-write-about-next/awtw-table.php on line 49
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/advanced-what-should-we-write-about-next/awtw-table.php on line 49
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: feedback, ajax, admin, spam, settings
advanced-what-should-we-write-about-next/awtw-plugin.php 77% from 13 tests
This is the main PHP file of "Advanced What should we write next about" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("advanced-what-should-we-write-about-next.php" instead of "awtw-plugin.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 164 characters long)
- Text Domain: The text domain should only use lowercase characters and dashes
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
No dangerous file extensions were detected719 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 165 | 500 | 601 |
CSS | 1 | 3 | 0 | 70 |
JavaScript | 1 | 2 | 1 | 31 |
PO File | 1 | 0 | 0 | 14 |
Markdown | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 11 | 44.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 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin