Benchmarks
Plugin footprint Passed 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 gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼150.06ms] Passed 4 tests
This is a short check of server-side resources used by WP Ajax Subscribe
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.08 | 38.70 ▼7.95 |
Dashboard /wp-admin | 3.13 ▲0.07 | 55.47 ▼21.20 |
Posts /wp-admin/edit.php | 3.24 ▲0.12 | 53.64 ▼8.06 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 94.05 ▼563.02 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 43.18 ▲5.58 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for WP Ajax Subscribe
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,820 ▲207 | 16.30 ▲0.65 | 13.71 ▲0.62 | 51.06 ▼9.84 |
Dashboard /wp-admin | 2,989 ▲55 | 6.07 ▲0.06 | 159.63 ▼8.68 | 137.96 ▲11.39 |
Posts /wp-admin/edit.php | 2,758 ▲19 | 2.83 ▲0.13 | 75.35 ▼9.38 | 101.97 ▲4.94 |
Add New Post /wp-admin/post-new.php | 1,697 ▲14 | 18.06 ▼0.38 | 418.38 ▼79.23 | 118.28 ▲7.28 |
Media Library /wp-admin/upload.php | 1,829 ▲22 | 5.04 ▲0.02 | 164.29 ▼10.85 | 123.41 ▲0.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-ajax-subscribe/public/partials/wp-ajax-subscribe-public-display.php
- > /wp-content/plugins/wp-ajax-subscribe/admin/partials/wp-ajax-subscribe-admin-display.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-ajax-subscribe/custom-function/custom-function.php:60
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-ajax-subscribe/custom-function/wp-ajax-subscribe-menu.php:2
- > 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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
- Donate link: Invalid url: ""
wp-ajax-subscribe/wp-ajax-subscribe.php Passed 13 tests
The primary PHP file in "WP Ajax Subscribe" version 1.1.1 is used by WordPress to initiate all plugin functionality
55 characters long description:
Simply add subscribers to MailChimp lists in one click.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin387 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 125 | 541 | 312 |
CSS | 2 | 3 | 8 | 39 |
JavaScript | 2 | 4 | 54 | 36 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 18 | 78.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 21.74% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
PNG images were not found in this plugin