Benchmarks
Plugin footprint 83% from 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.48MB] [CPU: ▼3.72ms] Passed 4 tests
A check of server-side resources used by Simple Attribution
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.43 | 40.10 ▲1.35 |
Dashboard /wp-admin | 3.81 ▲0.50 | 49.46 ▼4.43 |
Posts /wp-admin/edit.php | 3.92 ▲0.56 | 54.11 ▲2.12 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.50 | 90.59 ▼11.48 |
Media Library /wp-admin/upload.php | 3.73 ▲0.50 | 36.18 ▼0.31 |
Simple Attribution /wp-admin/options-general.php?page=simple_attribution-settings | 3.74 | 52.98 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 42 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
simple_attribution_settings |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Attribution
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.32 ▼1.07 | 5.07 ▲3.04 | 38.86 ▼4.83 |
Dashboard /wp-admin | 2,210 ▲22 | 4.81 ▼0.07 | 107.84 ▲0.81 | 38.86 ▼9.79 |
Posts /wp-admin/edit.php | 2,093 ▼3 | 2.01 ▼0.05 | 41.33 ▲0.84 | 33.90 ▼2.12 |
Add New Post /wp-admin/post-new.php | 6,481 ▲4,967 | 20.53 ▲3.04 | 926.57 ▲275.96 | 59.37 ▲2.95 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.25 ▲0.09 | 94.18 ▼11.76 | 40.82 ▼3.36 |
Simple Attribution /wp-admin/options-general.php?page=simple_attribution-settings | 1,143 | 5.53 | 110.40 | 37.79 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- can_compress_scripts
- simple_attribution_settings
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=simple_attribution-settings
- > Network (severe)
wp-content/plugins/simple-attribution/assets/css/admin.min.css?ver=2.1.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: cite, attribution, post, citation, link
simple-attribution/class-simple-attribution.php 77% from 13 tests
This is the main PHP file of "Simple Attribution" version 2.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Domain Path: The domain path should use only dashes and lowercase characters ("languages")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-attribution.php" instead of "class-simple-attribution.php")
- Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin10,954 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 0 | 0 | 8,074 |
PHP | 11 | 1,054 | 2,001 | 2,528 |
JavaScript | 4 | 30 | 18 | 162 |
CSS | 6 | 17 | 10 | 100 |
Markdown | 4 | 43 | 0 | 90 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 74.33 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 162.00 |
Average method complexity | 4.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 130 | |
▷ Static methods | 1 | 0.77% |
▷ Public methods | 118 | 90.77% |
▷ Protected methods | 2 | 1.54% |
▷ Private methods | 10 | 7.69% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/globe-1-light.png | 1.01KB | 0.97KB | ▼ 4.23% |
assets/images/globe-1.png | 2.12KB | 0.97KB | ▼ 54.08% |
assets/images/clip.png | 1.96KB | 0.94KB | ▼ 52.15% |
assets/images/quote-light.png | 0.52KB | 0.52KB | 0.00% |
assets/images/globe-2-light.png | 0.88KB | 0.83KB | ▼ 5.02% |