Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-content/plugins/ajax-the-metaboxes/ajax-the-metaboxes.php+118
Use of undefined constant wp_ajax_bp_action - assumed 'wp_ajax_bp_action' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.96MB] [CPU: ▼55.78ms] Passed 4 tests
A check of server-side resources used by Ajax the metaboxes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.20 ▼37.97 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.84 ▼44.72 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.27 ▼47.34 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.52 ▼93.07 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.80 ▼33.50 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Ajax the metaboxes
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲111 | 13.52 ▼0.83 | 8.25 ▲6.34 | 43.04 ▼3.42 |
Dashboard /wp-admin | 2,191 ▲11 | 5.57 ▼0.10 | 85.25 ▼3.07 | 40.68 ▲0.05 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 2.02 ▲0.03 | 38.47 ▲0.55 | 35.80 ▼3.88 |
Add New Post /wp-admin/post-new.php | 6,240 ▲4,703 | 25.72 ▲2.42 | 864.09 ▲175.70 | 56.78 ▲0.40 |
Media Library /wp-admin/upload.php | 1,405 ▲2 | 4.19 ▼0.04 | 103.28 ▲3.83 | 43.10 ▼2.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/ajax-the-metaboxes/ajax-the-metaboxes.php+118
Use of undefined constant wp_ajax_bp_action - assumed 'wp_ajax_bp_action' (this will throw an Error in a future version of PHP)
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ajax-the-metaboxes/ajax-the-metaboxes.php:59
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
4 plugin tags: admin, boilerplate, ajax, metabox
ajax-the-metaboxes/ajax-the-metaboxes.php Passed 13 tests
"Ajax the metaboxes" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
135 characters long description:
A plugin that gives the Wordpress developer two sample buttons, that are already implementing the native Wordpress's AJAX functionality
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
Good job! No executable or dangerous file extensions detected81 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 28 | 46 | 51 |
JavaScript | 1 | 3 | 3 | 30 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
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 | 5 | |
▷ Named functions | 5 | 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
PNG images were not found in this plugin