Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.95MB] [CPU: ▼34.40ms] Passed 4 tests
This is a short check of server-side resources used by ANAC XML Render
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.22 ▼13.73 |
Dashboard /wp-admin | 2.99 ▼0.31 | 25.27 ▼23.93 |
Posts /wp-admin/edit.php | 2.99 ▼0.36 | 26.56 ▼28.46 |
Add New Post /wp-admin/post-new.php | 2.99 ▼2.89 | 23.83 ▼71.47 |
Media Library /wp-admin/upload.php | 2.99 ▼0.23 | 22.22 ▼10.85 |
Anac Xml info /wp-admin/admin.php?page=anac-xml-menu | 2.99 | 27.14 |
Upload dei file XML /wp-admin/admin.php?page=anac-xml-upload-menu | 2.99 | 23.95 |
Impostazioni /wp-admin/admin.php?page=anac-xml-options-menu | 2.99 | 24.46 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by ANAC XML Render
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲37 | 14.75 ▲0.16 | 1.66 ▼0.30 | 43.18 ▼15.47 |
Dashboard /wp-admin | 2,226 ▲49 | 5.57 ▼0.07 | 85.14 ▼9.22 | 38.82 ▲0.25 |
Posts /wp-admin/edit.php | 2,134 ▲31 | 2.00 ▼0.00 | 40.52 ▼2.84 | 37.53 ▲0.20 |
Add New Post /wp-admin/post-new.php | 1,560 ▲27 | 23.21 ▲0.21 | 662.31 ▲4.97 | 70.44 ▲17.36 |
Media Library /wp-admin/upload.php | 1,434 ▲37 | 4.23 ▼0.03 | 101.97 ▼1.36 | 43.65 ▼3.66 |
Anac Xml info /wp-admin/admin.php?page=anac-xml-menu | 946 | 2.04 | 25.38 | 56.71 |
Upload dei file XML /wp-admin/admin.php?page=anac-xml-upload-menu | 798 | 2.03 | 24.38 | 24.25 |
Impostazioni /wp-admin/admin.php?page=anac-xml-options-menu | 933 | 2.05 | 24.08 | 43.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5453
Function add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=anac-xml-options-menu
- > User deprecated in wp-includes/functions.php+5453
Function add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
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 server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/anac-xml-render/anac-xml-admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/anac-xml-render/anac-xml-render.php:10
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: You are using too many tags: 19 tag instead of maximum 10
- Contributors: Contributors not specified
anac-xml-render/anac-xml-render.php Passed 13 tests
This is the main PHP file of "ANAC XML Render" version 1.5.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
32 characters long description:
Visualizzatore per file XML ANAC
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,339 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 54 | 18 | 601 |
JavaScript | 3 | 57 | 36 | 462 |
CSS | 2 | 32 | 8 | 276 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
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 | 23 | |
▷ Named functions | 23 | 100.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
11 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/uarrow.png | 0.27KB | 0.25KB | ▼ 5.49% |
img/darrow.png | 0.25KB | 0.25KB | ▼ 0.77% |
img/arrow_left.png | 0.25KB | 0.30KB | 0.00% |
img/last.png | 0.44KB | 0.41KB | ▼ 8.79% |
img/cloud-arrow-down-32.png | 0.77KB | 0.74KB | ▼ 4.56% |