Benchmarks
Plugin footprint 58% 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 cannot be installed
- > Notice in wp-content/plugins/attributron-2000/a2k.php+21
Constant WP_DEBUG already defined
Server metrics [RAM: ▼1.89MB] [CPU: ▼194.58ms] Passed 4 tests
A check of server-side resources used by Attributron 2000
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.74 ▼0.98 | 4.64 ▼16.92 |
Dashboard /wp-admin | 1.76 ▼1.29 | 5.83 ▼33.64 |
Posts /wp-admin/edit.php | 1.76 ▼1.35 | 4.86 ▼48.86 |
Add New Post /wp-admin/post-new.php | 1.76 ▼3.67 | 6.24 ▼667.27 |
Media Library /wp-admin/upload.php | 1.76 ▼1.24 | 5.16 ▼28.55 |
Server storage [IO: ▲0.15MB] [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: 5 new files
Database: no new tables, 1 new option
New WordPress options |
---|
dws_attributron-2000 |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Attributron 2000
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.90 ▲0.30 | 8.27 ▼5.94 | 51.96 ▼0.99 |
Dashboard /wp-admin | 2,967 ▲33 | 5.93 ▼0.02 | 143.59 ▼17.49 | 115.82 ▼14.81 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.01 | 72.04 ▼5.64 | 93.59 ▼16.39 |
Add New Post /wp-admin/post-new.php | 1,498 ▼174 | 18.78 ▼0.11 | 392.83 ▲13.30 | 121.42 ▲0.80 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.02 ▼0.00 | 147.28 ▼12.06 | 130.19 ▲10.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/attributron-2000/a2k.php+21
Constant WP_DEBUG already defined
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/attributron-2000/a2k.php:22
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/attributron-2000/a2k.php on line 22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (This shows the Edit Media screen and the new inputs avilable.), #2 (Here is what a post would look like (with a few CSS tweaks) with attributions.), #3 (The new settings available in the Media Settings page.)
attributron-2000/a2k.php 92% from 13 tests
"Attributron 2000" version 1.0.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("attributron-2000.php" instead of "a2k.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected282 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 28 | 17 | 282 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
2 compressed PNG files occupy 0.06MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 20.67KB | 20.58KB | 0.44% |
screenshot-1.png | 39.23KB | 38.74KB | ▼ 1.25% |