Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.20MB] [CPU: ▼0.07ms] Passed 4 tests
Server-side resources used by AR Play
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 52.44 ▲11.74 |
Dashboard /wp-admin | 3.55 ▲0.21 | 55.96 ▼5.35 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 50.53 ▲0.05 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 94.50 ▼4.66 |
Media Library /wp-admin/upload.php | 3.39 ▲0.17 | 41.53 ▲9.69 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
arplay_woocommerce |
arplay_app_url |
arplay_api_url |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AR Play
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,272 ▲511 | 16.01 ▲1.65 | 22.54 ▲20.92 | 43.23 ▼0.68 |
Dashboard /wp-admin | 2,349 ▲169 | 6.08 ▲0.42 | 99.82 ▲11.06 | 41.55 ▼3.45 |
Posts /wp-admin/edit.php | 2,291 ▲191 | 3.36 ▲1.36 | 51.47 ▲14.67 | 34.89 ▲0.62 |
Add New Post /wp-admin/post-new.php | 1,552 ▲17 | 23.11 ▲4.95 | 646.11 ▼1.15 | 35.77 ▼24.51 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.16 ▲0.03 | 82.18 ▼35.11 | 46.28 ▲3.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/ar-play/templates/admin.php:13
- > PHP Fatal error
Uncaught Error: Class 'IncArplay\\Base\\BaseController' not found in wp-content/plugins/ar-play/inc/Api/Callbacks/PositionCallbacks.php:11
- > PHP Fatal error
Uncaught Error: Class 'IncArplay\\Base\\BaseController' not found in wp-content/plugins/ar-play/inc/Base/Enqueue.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ar-play/templates/shortcode.php:68
- > PHP Fatal error
Uncaught Error: Class 'IncArplay\\Base\\BaseController' not found in wp-content/plugins/ar-play/inc/Api/Callbacks/AdminCallbacks.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/ar-play/templates/woocommerce.php:13
- > PHP Fatal error
Uncaught Error: Class 'IncArplay\\Base\\BaseController' not found in wp-content/plugins/ar-play/inc/Base/SettingsLinks.php:11
- > PHP Fatal error
Uncaught Error: Class 'IncArplay\\Base\\BaseController' not found in wp-content/plugins/ar-play/inc/Api/Callbacks/ManagerCallbacks.php:11
- > PHP Fatal error
Uncaught Error: Class 'IncArplay\\Base\\BaseController' not found in wp-content/plugins/ar-play/inc/Pages/Dashboard.php:15
- > PHP Fatal error
Uncaught Error: Class 'IncArplay\\Base\\BaseController' not found in wp-content/plugins/ar-play/inc/Base/WoocommerceController.php:16
- > 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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== ar-play ===
) - Donate link: Invalid url: "ar-ty.com"
ar-play/arplay.php 92% from 13 tests
Analyzing the main PHP file in "AR Play" version 1.0.0
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ar-play.php" instead of "arplay.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,541 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 464 | 272 | 1,286 |
CSS | 1 | 4 | 2 | 156 |
SVG | 1 | 0 | 1 | 44 |
JavaScript | 1 | 0 | 0 | 35 |
JSON | 2 | 0 | 0 | 20 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 6.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 1 | 5.88% |
Methods | 85 | |
▷ Static methods | 8 | 9.41% |
▷ Public methods | 83 | 97.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.35% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
1 PNG file occupies 0.23MB with 0.17MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/positions.png | 239.89KB | 61.04KB | ▼ 74.56% |