84% avid-elements

Code Review | Avid Elements - News Magazine & Blog Grid Layouts

WordPress plugin Avid Elements - News Magazine & Blog Grid Layouts scored84%from 54 tests.

About plugin

  • Plugin page: avid-elements
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.4.2
  • WordPress version: 6.3.1
  • First release: Jul 2, 2020
  • Latest release: Jul 2, 2020
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: avidthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /555 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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.05ms] Passed 4 tests

A check of server-side resources used by Avid Elements - News Magazine & Blog Grid Layouts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0249.14 ▲3.37
Dashboard /wp-admin3.32 ▲0.0250.63 ▼5.50
Posts /wp-admin/edit.php3.37 ▲0.0252.17 ▲1.21
Add New Post /wp-admin/post-new.php5.90 ▲0.0287.94 ▼13.59
Media Library /wp-admin/upload.php3.25 ▲0.0237.21 ▲1.68

Server storage [IO: ▲0.08MB] [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: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Avid Elements - News Magazine & Blog Grid Layouts
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7014.38 ▲0.171.95 ▲0.0440.01 ▼7.09
Dashboard /wp-admin2,206 ▲295.59 ▼0.1692.78 ▲0.6936.76 ▼6.05
Posts /wp-admin/edit.php2,120 ▲202.01 ▼0.0439.25 ▲2.6538.84 ▲0.41
Add New Post /wp-admin/post-new.php1,566 ▲2118.63 ▼4.49650.11 ▼42.0949.46 ▼7.39
Media Library /wp-admin/upload.php1,417 ▲204.19 ▲0.0198.66 ▼4.3642.47 ▼5.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

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 fix the following items
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined variable: all_posts in wp-content/plugins/avid-elements/frontend/layouts/blogs-layout.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/avid-elements/frontend/layouts/blogs-layout.php:3
    • > PHP Notice
      Undefined variable: all_posts in wp-content/plugins/avid-elements/frontend/layouts/news-layout.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ElementorLayout\\add_action() in wp-content/plugins/avid-elements/plugin.php:96
    • > PHP Fatal error
      Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/avid-elements/frontend/layouts/news-layout.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: grid, elementor, blog, news

avid-elements/elementor-news-layouts.php 92% from 13 tests

The principal PHP file in "Avid Elements - News Magazine & Blog Grid Layouts" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("avid-elements.php" instead of "elementor-news-layouts.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,864 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP93743251,779
CSS2571482
JavaScript12273

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity6.67
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity1.58
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces4
Interfaces0
Traits2
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods59
▷ Static methods11.69%
▷ Public methods2237.29%
▷ Protected methods1016.95%
▷ Private methods2745.76%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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