68% anac-xml-render

Code Review | ANAC XML Render

WordPress plugin ANAC XML Render scored68%from 54 tests.

About plugin

  • Plugin page: anac-xml-render
  • Plugin version: 1.5.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.7.2
  • WordPress version: 6.3.1
  • First release: Jan 25, 2016
  • Latest release: Nov 15, 2017
  • Number of updates: 59
  • Update frequency: every 11.2 days
  • Top authors: EnzoCostantini55 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,701 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.22 ▼13.73
Dashboard /wp-admin2.99 ▼0.3125.27 ▼23.93
Posts /wp-admin/edit.php2.99 ▼0.3626.56 ▼28.46
Add New Post /wp-admin/post-new.php2.99 ▼2.8923.83 ▼71.47
Media Library /wp-admin/upload.php2.99 ▼0.2322.22 ▼10.85
Anac Xml info /wp-admin/admin.php?page=anac-xml-menu2.9927.14
Upload dei file XML /wp-admin/admin.php?page=anac-xml-upload-menu2.9923.95
Impostazioni /wp-admin/admin.php?page=anac-xml-options-menu2.9924.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲3714.75 ▲0.161.66 ▼0.3043.18 ▼15.47
Dashboard /wp-admin2,226 ▲495.57 ▼0.0785.14 ▼9.2238.82 ▲0.25
Posts /wp-admin/edit.php2,134 ▲312.00 ▼0.0040.52 ▼2.8437.53 ▲0.20
Add New Post /wp-admin/post-new.php1,560 ▲2723.21 ▲0.21662.31 ▲4.9770.44 ▲17.36
Media Library /wp-admin/upload.php1,434 ▲374.23 ▼0.03101.97 ▼1.3643.65 ▼3.66
Anac Xml info /wp-admin/admin.php?page=anac-xml-menu9462.0425.3856.71
Upload dei file XML /wp-admin/admin.php?page=anac-xml-upload-menu7982.0324.3824.25
Impostazioni /wp-admin/admin.php?page=anac-xml-options-menu9332.0524.0843.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

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
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP55418601
JavaScript35736462
CSS2328276

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 code0.34
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
img/uarrow.png0.27KB0.25KB▼ 5.49%
img/darrow.png0.25KB0.25KB▼ 0.77%
img/arrow_left.png0.25KB0.30KB0.00%
img/last.png0.44KB0.41KB▼ 8.79%
img/cloud-arrow-down-32.png0.77KB0.74KB▼ 4.56%