79% eleganto-advanced-sections

Code Review | Eleganto Advanced Sections

WordPress plugin Eleganto Advanced Sections scored79%from 54 tests.

About plugin

  • Plugin page: eleganto-advanced...
  • Plugin version: 1.1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.7
  • WordPress version: 6.3.1
  • First release: Dec 20, 2016
  • Latest release: Feb 21, 2017
  • Number of updates: 9
  • Update frequency: every 6.8 days
  • Top authors: themes4wp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /35,218 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼6.66ms] Passed 4 tests

This is a short check of server-side resources used by Eleganto Advanced Sections
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0844.54 ▲1.76
Dashboard /wp-admin3.38 ▲0.0850.75 ▼4.55
Posts /wp-admin/edit.php3.43 ▲0.0845.92 ▼6.24
Add New Post /wp-admin/post-new.php5.96 ▲0.0888.41 ▼16.65
Media Library /wp-admin/upload.php3.31 ▲0.0839.01 ▲0.79

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Eleganto Advanced Sections: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.74 ▲0.341.64 ▼0.2740.80 ▼3.31
Dashboard /wp-admin2,209 ▲245.85 ▲0.96104.52 ▼19.0439.77 ▼4.37
Posts /wp-admin/edit.php2,086 ▼32.01 ▼0.0037.00 ▼4.0034.15 ▼0.81
Add New Post /wp-admin/post-new.php1,514 ▼1917.67 ▼5.49682.19 ▼4.6755.59 ▲0.60
Media Library /wp-admin/upload.php1,388 ▲94.27 ▲0.09103.63 ▲0.7647.49 ▲0.60

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/eleganto-advanced-sections/eleganto-advanced-sections.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eleganto-advanced-sections/inc/settings.php:557

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were 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
10 plugin tags: companion, contact, section, testimonials, blog...

eleganto-advanced-sections/eleganto-advanced-sections.php Passed 13 tests

The main file in "Eleganto Advanced Sections" v. 1.1.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
87 characters long description:
Add Services, Testimonials, Slider, Image, Blog and Contact sections to Eleganto 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
No dangerous file extensions were detected581 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24346581

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin