84% identitat-digital-republicana

Code Review | Identitat Digital Republicana

WordPress plugin Identitat Digital Republicana scored84%from 54 tests.

About plugin

  • Plugin page: identitat-digital...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.0
  • WordPress version: 6.3.1
  • First release: Apr 14, 2021
  • Latest release: May 26, 2022
  • Number of updates: 6
  • Update frequency: every 67.8 days
  • Top authors: siriondev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /320 total downloads

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.02MB] [CPU: ▼2.40ms] Passed 4 tests

An overview of server-side resources used by Identitat Digital Republicana
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0341.42 ▼1.35
Dashboard /wp-admin3.36 ▲0.0248.00 ▼5.52
Posts /wp-admin/edit.php3.42 ▲0.0249.74 ▼3.80
Add New Post /wp-admin/post-new.php5.95 ▲0.0294.68 ▲2.03
Media Library /wp-admin/upload.php3.29 ▲0.0239.69 ▲1.08

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Identitat Digital Republicana
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.27 ▼0.352.11 ▲0.5243.35 ▼0.14
Dashboard /wp-admin2,192 ▲125.56 ▼0.1585.54 ▼3.0343.49 ▲2.83
Posts /wp-admin/edit.php2,097 ▼62.00 ▲0.0436.93 ▼5.6640.44 ▲3.70
Add New Post /wp-admin/post-new.php1,526 ▼023.30 ▼0.35625.39 ▼67.3660.64 ▲5.56
Media Library /wp-admin/upload.php1,403 ▲64.19 ▲0.0099.04 ▼13.9540.57 ▼10.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

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
Even though everything seems fine, this is not an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/identitat-digital-republicana/identitat-digital-republicana.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 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
8 plugin tags: cxr, republicana, digital, identitat-digital-republicana, identitat...

identitat-digital-republicana/identitat-digital-republicana.php Passed 13 tests

"Identitat Digital Republicana" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
115 characters long description:
Integració amb el procés de validació de la Identitat Digital Republicana del Consell per la República Catalana

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
Good job! No executable or dangerous file extensions detected76 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1444276

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin