Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼2.41ms] Passed 4 tests
This is a short check of server-side resources used by CubePoints Authorize.net Module
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 36.07 ▼3.66 |
Dashboard /wp-admin | 3.38 ▲0.08 | 46.66 ▲0.05 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 47.71 ▼1.02 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 92.81 ▼5.00 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.63 ▲1.40 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by CubePoints Authorize.net Module
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 13.24 ▼0.99 | 1.71 ▲0.00 | 40.83 ▼9.96 |
Dashboard /wp-admin | 2,217 ▲26 | 4.84 ▼0.05 | 104.37 ▼0.71 | 45.32 ▲3.77 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 2.02 ▲0.03 | 39.68 ▲5.36 | 37.04 ▲6.35 |
Add New Post /wp-admin/post-new.php | 1,541 ▼1 | 23.42 ▲5.26 | 670.41 ▲14.28 | 55.90 ▲4.40 |
Media Library /wp-admin/upload.php | 1,396 ▲5 | 4.19 ▼0.04 | 107.87 ▲8.34 | 46.93 ▲2.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
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)
Everything seems fine, however this is by no means an exhaustive test
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
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/cubepoints-authorizenet-module/cubepoints_authorize.php on line 14
- > PHP Warning
require_once(ABSPATH/wp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/cubepoints-authorizenet-module/cubepoints_authorize.php on line 14
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/cubepoints-authorizenet-module/cubepoints_authorize.php on line 14
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: cubepoints authorizenet, payment, user points, cubepoints, authorizenet
cubepoints-authorizenet-module/cubepoints_authorize.php 92% from 13 tests
Analyzing the main PHP file in "CubePoints Authorize.net Module" version 1.0
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("cubepoints-authorizenet-module.php" instead of "cubepoints_authorize.php")
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 plugin336 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 37 | 24 | 295 |
CSS | 1 | 0 | 0 | 41 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
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 | 11 | |
▷ Named functions | 11 | 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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 8.72KB | 5.40KB | ▼ 38.07% |
screenshot-2.png | 15.28KB | 9.52KB | ▼ 37.69% |
screenshot-1.png | 75.06KB | 35.09KB | ▼ 53.26% |