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.07MB] [CPU: ▼2.31ms] Passed 4 tests
A check of server-side resources used by ANAC XML Viewer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 35.96 ▲1.23 |
Dashboard /wp-admin | 3.37 ▲0.07 | 44.60 ▼8.70 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 47.68 ▲0.98 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 81.20 ▼1.58 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 33.14 ▲0.08 |
Anac XML /wp-admin/edit.php?post_type=anac-xml-view | 3.33 | 32.08 |
Nuovo Dataset /wp-admin/post-new.php?post_type=anac-xml-view | 3.33 | 41.07 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
ANAC XML Viewer: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.31 ▼0.29 | 1.66 ▲0.03 | 37.42 ▼4.71 |
Dashboard /wp-admin | 2,225 ▲48 | 5.60 ▲0.02 | 83.42 ▼10.71 | 38.18 ▼0.65 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 1.95 ▼0.02 | 39.63 ▲1.29 | 37.07 ▲3.74 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 23.03 ▼0.20 | 634.83 ▼45.40 | 61.38 ▲7.54 |
Media Library /wp-admin/upload.php | 1,430 ▲33 | 4.16 ▼0.03 | 97.36 ▼9.38 | 41.52 ▼5.52 |
Anac XML /wp-admin/edit.php?post_type=anac-xml-view | 1,107 | 1.92 | 30.66 | 29.39 |
Nuovo Dataset /wp-admin/post-new.php?post_type=anac-xml-view | 1,553 | 2.81 | 59.12 | 35.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/anac-xml-viewer/core.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/anac-xml-viewer/anac-xml-viewer.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (34 tag instead of maximum 10)
anac-xml-viewer/anac-xml-viewer.php Passed 13 tests
Analyzing the main PHP file in "ANAC XML Viewer" version 1.7
59 characters long description:
Visualizzatore XML per file generati da applicativi esterni
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
There were no executable files found in this plugin264 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 38 | 8 | 263 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 16 | |
▷ Named functions | 10 | 62.50% |
▷ Anonymous functions | 6 | 37.50% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
wpg.png | 21.66KB | 8.31KB | ▼ 61.63% |
wpgov.png | 0.43KB | 0.25KB | ▼ 41.67% |