78% attesa-extra

Code Review | Attesa Extra

WordPress plugin Attesa Extra scored78%from 54 tests.

About plugin

  • Plugin page: attesa-extra
  • Plugin version: 1.3.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.5-6.4
  • WordPress version: 6.3.1
  • First release: Jul 17, 2019
  • Latest release: Nov 27, 2023
  • Number of updates: 159
  • Update frequency: every 10.0 days
  • Top authors: CrestaProject (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /49,942 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.84ms] Passed 4 tests

A check of server-side resources used by Attesa Extra
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0332.03 ▼6.58
Dashboard /wp-admin3.35 ▲0.0449.95 ▲3.12
Posts /wp-admin/edit.php3.46 ▲0.1049.49 ▼0.77
Add New Post /wp-admin/post-new.php5.93 ▲0.0385.75 ▼19.15
Media Library /wp-admin/upload.php3.27 ▲0.0335.67 ▼0.85

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Attesa Extra
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲5114.67 ▲0.411.58 ▼0.0638.35 ▼5.39
Dashboard /wp-admin2,203 ▲235.63 ▼0.0292.29 ▼2.6843.02 ▼2.39
Posts /wp-admin/edit.php2,108 ▲82.16 ▲0.1536.18 ▼4.2735.98 ▼0.15
Add New Post /wp-admin/post-new.php1,534 ▲823.21 ▲0.23663.73 ▲66.9749.72 ▼5.96
Media Library /wp-admin/upload.php1,411 ▲174.19 ▼0.0397.14 ▼0.4044.32 ▲2.72

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
The following issues need your attention
  • 26× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/attesa-extra/metabox/butterbean/tmpl/control-parent.php
    • > /wp-content/plugins/attesa-extra/metabox/controls/image/template.php
    • > /wp-content/plugins/attesa-extra/metabox/butterbean/tmpl/control-radio-image.php
    • > /wp-content/plugins/attesa-extra/metabox/controls/checkboxes/template.php
    • > /wp-content/plugins/attesa-extra/metabox/butterbean/tmpl/control.php
    • > /wp-content/plugins/attesa-extra/metabox/butterbean/tmpl/control-checkbox.php
    • > /wp-content/plugins/attesa-extra/metabox/butterbean/tmpl/control-checkboxes.php
    • > /wp-content/plugins/attesa-extra/metabox/butterbean/tmpl/control-select-group.php
    • > /wp-content/plugins/attesa-extra/metabox/controls/number/template.php
    • > /wp-content/plugins/attesa-extra/metabox/butterbean/tmpl/control-textarea.php
  • 23× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ButterBean_Control_Radio' not found in wp-content/plugins/attesa-extra/metabox/butterbean/inc/controls/class-control-radio-image.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/attesa-extra/panel/classes/importers/class-customizer-option.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/attesa-extra/metabox/butterbean/inc/controls/class-control-image.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/attesa-extra/metabox/butterbean/inc/controls/class-control-color.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/attesa-extra/metabox/butterbean/inc/controls/class-control-textarea.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/attesa-extra/metabox/hooks.php:53
    • > PHP Fatal error
      Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/attesa-extra/metabox/butterbean/inc/controls/class-control-parent.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/attesa-extra/metabox/butterbean/inc/controls/class-control-checkboxes.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'ButterBean_Control_Textarea' not found in wp-content/plugins/attesa-extra/metabox/butterbean/inc/controls/class-control-excerpt.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'ButterBean_Setting' not found in wp-content/plugins/attesa-extra/metabox/butterbean/inc/settings/class-setting-multiple.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Attesa Extra Meta Boxes), #2 (Import demo content)
Please take inspiration from this readme.txt

attesa-extra/attesa-extra.php Passed 13 tests

Analyzing the main PHP file in "Attesa Extra" version 1.3.8
45 characters long description:
Add extra features to Attesa WordPress Theme.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected17,716 lines of code in 137 files:
LanguageFilesBlank linesComment linesLines of code
PHP921,9573,47913,930
JavaScript156018471,790
CSS26159201,595
Markdown41260401

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity16.87
▷ Minimum class complexity1.00
▷ Maximum class complexity214.00
Average method complexity3.30
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes61
▷ Abstract classes00.00%
▷ Concrete classes61100.00%
▷ Final classes69.84%
Methods421
▷ Static methods276.41%
▷ Public methods36887.41%
▷ Protected methods368.55%
▷ Private methods174.04%
Functions118
▷ Named functions118100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
22 compressed PNG files occupy 0.39MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
panel/assets/img/pro-features/related-posts.png15.71KB16.42KB0.00%
panel/assets/img/pro-features/share-buttons.png14.42KB15.18KB0.00%
panel/assets/img/pro-features/custom-sidebars.png15.43KB15.94KB0.00%
screenshot-2.png158.61KB171.53KB0.00%
panel/assets/img/attesa-icon-70-70.png0.41KB0.41KB0.00%