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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 49.14 ▲3.37 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.63 ▼5.50 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 52.17 ▲1.21 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 87.94 ▼13.59 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲70 | 14.38 ▲0.17 | 1.95 ▲0.04 | 40.01 ▼7.09 |
Dashboard /wp-admin | 2,206 ▲29 | 5.59 ▼0.16 | 92.78 ▲0.69 | 36.76 ▼6.05 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 2.01 ▼0.04 | 39.25 ▲2.65 | 38.84 ▲0.41 |
Add New Post /wp-admin/post-new.php | 1,566 ▲21 | 18.63 ▼4.49 | 650.11 ▼42.09 | 49.46 ▼7.39 |
Media Library /wp-admin/upload.php | 1,417 ▲20 | 4.19 ▲0.01 | 98.66 ▼4.36 | 42.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
- > PHP Notice
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 374 | 325 | 1,779 |
CSS | 2 | 57 | 14 | 82 |
JavaScript | 1 | 2 | 27 | 3 |
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 code | 0.13 |
Average class complexity | 6.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 59 | |
▷ Static methods | 1 | 1.69% |
▷ Public methods | 22 | 37.29% |
▷ Protected methods | 10 | 16.95% |
▷ Private methods | 27 | 45.76% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.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