84% autonomos

Code Review | Autonomos

WordPress plugin Autonomos scored 84% from 54 tests.

About plugin

  • Plugin page: autonomos
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 7.2-6.3
  • WordPress version: 6.3.1
  • First release: Feb 7, 2018
  • Latest release: Sep 25, 2023
  • Number of updates: 53
  • Update frequency: every 38.8 days
  • Top authors: j.conti (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active / 4,113 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.53ms] Passed 4 tests

Analyzing server-side resources used by Autonomos
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.29 ▼13.40
Dashboard /wp-admin3.31 ▲0.0142.57 ▼4.93
Posts /wp-admin/edit.php3.36 ▲0.0143.83 ▼2.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.86 ▼9.32
Media Library /wp-admin/upload.php3.23 ▲0.0036.69 ▲5.66

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Autonomos
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.18 ▼1.221.87 ▼0.1840.66 ▼7.69
Dashboard /wp-admin2,209 ▲214.86 ▼0.9397.36 ▼17.8639.84 ▼10.00
Posts /wp-admin/edit.php2,086 ▼32.00 ▲0.0136.52 ▲2.3136.94 ▲2.00
Add New Post /wp-admin/post-new.php1,542 ▲2818.21 ▲0.39609.70 ▼75.3361.34 ▲3.40
Media Library /wp-admin/upload.php1,391 ▼04.15 ▼0.04101.78 ▲1.3046.15 ▲0.64

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/autonomos/loader.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: irpf, autonomos, recargo de equivalencia, equivalence surcharge, equivalencia...

autonomos/loader.php 85% from 13 tests

The main PHP script in "Autonomos" version 2.0.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("autonomos.php" instead of "loader.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "7.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected562 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity4.00
▷ Minimum class complexity3.00
▷ Maximum class complexity5.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1995.00%
▷ Anonymous functions15.00%
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin