83% fil-dariadna

Code Review | Fil d'Ariadna

WordPress plugin Fil d'Ariadna scored83%from 54 tests.

About plugin

  • Plugin page: fil-dariadna
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Feb 16, 2013
  • Latest release: Feb 22, 2013
  • Number of updates: 3
  • Update frequency: every 2.3 days
  • Top authors: efraimbayarri (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /804 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.71ms] Passed 4 tests

An overview of server-side resources used by Fil d'Ariadna
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0351.37 ▲2.09
Dashboard /wp-admin3.33 ▲0.0349.55 ▼1.09
Posts /wp-admin/edit.php3.38 ▲0.0348.61 ▼7.75
Add New Post /wp-admin/post-new.php5.91 ▲0.0383.95 ▼16.08
Media Library /wp-admin/upload.php3.26 ▲0.0340.30 ▲4.46
Fil d'Ariadna /wp-admin/options-general.php?page=fildariadna-admin-menu3.2231.00

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Fil d'Ariadna
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.37 ▼0.282.88 ▲1.0661.21 ▲15.34
Dashboard /wp-admin2,199 ▲225.62 ▲0.0485.40 ▼18.1341.17 ▼5.84
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0235.86 ▼0.4633.20 ▼6.54
Add New Post /wp-admin/post-new.php1,529 ▲323.23 ▲0.19673.16 ▼15.4261.72 ▼7.03
Media Library /wp-admin/upload.php1,404 ▲44.23 ▲0.07110.92 ▲12.5247.02 ▼1.85
Fil d'Ariadna /wp-admin/options-general.php?page=fildariadna-admin-menu8241.9622.3427.01

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/fil-dariadna/fildariadna.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: ""
  • Screenshots: Screenshot #1 (2.) image not found
You can take inspiration from this readme.txt

fil-dariadna/fildariadna.php 92% from 13 tests

This is the main PHP file of "Fil d'Ariadna" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("fil-dariadna.php" instead of "fildariadna.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected283 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File46056172
PHP11452111

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions5
▷ Named functions5100.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