79% etalia

Code Review | Etalia

WordPress plugin Etalia scored 79% from 54 tests.

About plugin

  • Plugin page: etalia
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.7.1
  • WordPress version: 6.3.1
  • First release: Oct 18, 2013
  • Latest release: Nov 4, 2013
  • Number of updates: 13
  • Update frequency: every 1.3 days
  • Top authors: Daniele79 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 795 total downloads

Benchmarks

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
This plugin's installer ran successfully

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

A check of server-side resources used by Etalia
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.83 ▼3.70
Dashboard /wp-admin3.31 ▲0.0143.28 ▼2.09
Posts /wp-admin/edit.php3.36 ▲0.0149.30 ▲1.77
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.16 ▼6.59
Media Library /wp-admin/upload.php3.23 ▲0.0134.07 ▲1.65
Etalia /wp-admin/options-general.php?page=etalia3.1830.71

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Etalia
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.29 ▼1.074.33 ▲2.5041.53 ▲1.14
Dashboard /wp-admin2,210 ▲225.86 ▲0.91103.76 ▼4.8340.40 ▼2.34
Posts /wp-admin/edit.php2,096 ▲102.00 ▼0.0539.63 ▲4.2934.12 ▼0.09
Add New Post /wp-admin/post-new.php1,536 ▲823.30 ▲5.13625.84 ▲30.8751.71 ▲0.17
Media Library /wp-admin/upload.php1,386 ▼54.17 ▼0.0696.90 ▲0.1141.77 ▼1.09
Etalia /wp-admin/options-general.php?page=etalia8092.0324.0525.74

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=etalia
    • > Notice in wp-content/plugins/etalia/etalia-admin.php+53
    Undefined index: submitted
    • > GET request to /wp-admin/options-general.php?page=etalia
    • > Notice in wp-content/plugins/etalia/etalia-admin.php+54
    Undefined index: email
    • > GET request to /wp-admin/options-general.php?page=etalia
    • > Notice in wp-content/plugins/etalia/etalia-admin.php+56
    Undefined index: password

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/etalia/etalia.php:56

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: syndication, etalia

etalia/etalia.php Passed 13 tests

The main file in "Etalia" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
30 characters long description:
Etalia publishing integration.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin281 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP34176281

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin