10% ajax-the-metaboxes

Code Review | Ajax the metaboxes

WordPress plugin Ajax the metaboxes scored10%from 54 tests.

About plugin

  • Plugin page: ajax-the-metaboxes
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.1
  • WordPress version: 6.3.1
  • First release: Jan 3, 2015
  • Latest release: Jan 4, 2015
  • Number of updates: 2
  • Update frequency: every 13.5 days
  • Top authors: peeping4dsun (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /903 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.20 ▼37.97
Dashboard /wp-admin2.05 ▼1.265.84 ▼44.72
Posts /wp-admin/edit.php2.05 ▼1.315.27 ▼47.34
Add New Post /wp-admin/post-new.php2.05 ▼3.845.52 ▼93.07
Media Library /wp-admin/upload.php2.05 ▼1.185.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲11113.52 ▼0.838.25 ▲6.3443.04 ▼3.42
Dashboard /wp-admin2,191 ▲115.57 ▼0.1085.25 ▼3.0740.68 ▲0.05
Posts /wp-admin/edit.php2,105 ▲52.02 ▲0.0338.47 ▲0.5535.80 ▼3.88
Add New Post /wp-admin/post-new.php6,240 ▲4,70325.72 ▲2.42864.09 ▲175.7056.78 ▲0.40
Media Library /wp-admin/upload.php1,405 ▲24.19 ▼0.04103.28 ▲3.8343.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP1284651
JavaScript13330

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 code0.32
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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