Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.08MB] [CPU: ▼158.88ms] Passed 4 tests
Server-side resources used by AR Magic
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.06 | 36.43 ▲9.74 |
Dashboard /wp-admin | 3.05 ▼0.01 | 22.33 ▼21.02 |
Posts /wp-admin/edit.php | 3.10 ▼0.00 | 23.63 ▼12.57 |
Add New Post /wp-admin/post-new.php | 5.07 ▼0.37 | 58.72 ▼597.60 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 21.45 ▼4.31 |
Instructions /wp-admin/edit.php?post_type=ar_magic&page=ar_magic | 3.07 | 21.11 |
Account Management /wp-admin/edit.php?post_type=ar_magic&page=ar_magic_account | 3.07 | 34.74 |
Add Responder /wp-admin/post-new.php?post_type=ar_magic | 3.14 | 44.60 |
Saved Responders /wp-admin/edit.php?post_type=ar_magic | 3.14 | 28.34 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for AR Magic
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,716 ▲115 | 15.92 ▲0.19 | 4.84 ▼1.96 | 73.63 ▼4.98 |
Dashboard /wp-admin | 2,976 ▲80 | 6.13 ▼0.09 | 117.18 ▼11.17 | 202.90 ▲33.90 |
Posts /wp-admin/edit.php | 2,789 ▲49 | 3.14 ▼0.09 | 64.20 ▼1.41 | 132.37 ▼5.70 |
Add New Post /wp-admin/post-new.php | 2,523 ▼1,218 | 16.71 ▼1.99 | 398.87 ▼69.18 | 190.02 ▲25.49 |
Media Library /wp-admin/upload.php | 1,794 ▲42 | 5.52 ▼0.01 | 126.98 ▼16.26 | 200.29 ▲19.81 |
Instructions /wp-admin/edit.php?post_type=ar_magic&page=ar_magic | 3,262 | 7.03 | 281.10 | 170.52 |
Account Management /wp-admin/edit.php?post_type=ar_magic&page=ar_magic_account | 1,090 | 2.33 | 54.62 | 115.10 |
Add Responder /wp-admin/post-new.php?post_type=ar_magic | 2,008 | 3.99 | 77.17 | 155.30 |
Saved Responders /wp-admin/edit.php?post_type=ar_magic | 1,488 | 3.07 | 63.57 | 118.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
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 | 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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/ar-magic/ar-magic.php:46
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/ar-magic/form.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (AR Magic application example) image required
ar-magic/ar-magic.php Passed 13 tests
The main PHP script in "AR Magic" version 1.4 is automatically included on every request by WordPress
63 characters long description:
BZ9, Aweber, Getresponse and Mailchimp autoresponder management
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin524 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 88 | 118 | 471 |
JavaScript | 1 | 1 | 0 | 33 |
CSS | 1 | 5 | 0 | 20 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 45.00 |
▷ Minimum class complexity | 45.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 88.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 12.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/arMagic_Open.png | 7.71KB | 4.53KB | ▼ 41.28% |
images/arMagic_logo16.png | 1.15KB | 0.96KB | ▼ 16.45% |
images/arMagic_Help.png | 4.78KB | 3.74KB | ▼ 21.71% |
js/arMagic_logo128.png | 23.74KB | 8.04KB | ▼ 66.12% |
screenshot-1.png | 33.36KB | 17.54KB | ▼ 47.40% |