Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲5.00MB] [CPU: ▲18.95ms] 75% from 4 tests
This is a short check of server-side resources used by Primary Addon for Elementor
Please fix the following
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.00MB on /wp-admin/admin.php?page=napae_admin_page)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.89 ▲5.42 | 69.20 ▲31.82 |
Dashboard /wp-admin | 8.91 ▲5.60 | 71.58 ▲14.65 |
Posts /wp-admin/edit.php | 8.91 ▲5.55 | 81.21 ▲23.14 |
Add New Post /wp-admin/post-new.php | 9.33 ▲3.44 | 108.70 ▲6.20 |
Media Library /wp-admin/upload.php | 8.91 ▲5.68 | 77.26 ▲41.79 |
Enable & Disable /wp-admin/admin.php?page=napae_admin_sub_page | 8.91 | 62.74 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.91 | 59.53 |
Primary Addon /wp-admin/admin.php?page=napae_admin_page | 8.91 | 69.82 |
Server storage [IO: ▲8.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 327 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
fs_accounts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
fs_active_plugins |
db_upgraded |
fs_debug_mode |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Primary Addon for Elementor: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,008 ▲222 | 14.33 ▲0.02 | 20.24 ▲18.22 | 30.75 ▼13.72 |
Dashboard /wp-admin | 2,251 ▲71 | 5.52 ▼0.05 | 85.25 ▼4.59 | 42.00 ▼5.74 |
Posts /wp-admin/edit.php | 2,160 ▲57 | 2.15 ▲0.14 | 38.06 ▼4.11 | 36.24 ▲0.42 |
Add New Post /wp-admin/post-new.php | 1,566 ▲21 | 22.19 ▼0.94 | 706.77 ▲39.79 | 52.85 ▼8.59 |
Media Library /wp-admin/upload.php | 1,462 ▲62 | 4.22 ▼0.09 | 105.15 ▼6.66 | 52.34 ▲5.25 |
Enable & Disable /wp-admin/admin.php?page=napae_admin_sub_page | 1,192 | 2.19 | 29.53 | 30.12 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,094 | 1.83 | 22.62 | 27.48 |
Primary Addon /wp-admin/admin.php?page=napae_admin_page | 997 | 1.86 | 27.64 | 62.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/primary-addon-for-elementor/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 9 options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- fs_accounts
- fs_debug_mode
- widget_recent-posts
- theysaidso_admin_options
- fs_active_plugins
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 27× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/primary-addon-for-elementor/elementor/widgets/basic/nabasic-contact.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/primary-addon-for-elementor/elementor/widgets/basic/nabasic-team.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/primary-addon-for-elementor/elementor/widgets/basic/nabasic-subscribe.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/primary-addon-for-elementor/elementor/widgets/basic/nabasic-video.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/primary-addon-for-elementor/elementor/widgets/basic/nabasic-section-title.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/primary-addon-for-elementor/elementor/widgets/basic/nabasic-about-us.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/primary-addon-for-elementor/elementor/widgets/basic/nabasic-pricing-table.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/primary-addon-for-elementor/elementor/widgets/basic/nabasic-blog.php:9
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/primary-addon-for-elementor/primary-addon-for-elementor.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/primary-addon-for-elementor/elementor/widgets/basic/nabasic-process.php:9
- > PHP Fatal error
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 93% 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
Attributes that need to be fixed:
- Tags: You are using too many tags: 12 tag instead of maximum 10
primary-addon-for-elementor/primary-addon-for-elementor.php 92% from 13 tests
"Primary Addon for Elementor" version 1.5.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 189 characters long)
Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin96,002 lines of code in 230 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 150 | 8,993 | 18,165 | 53,418 |
JavaScript | 31 | 5,639 | 6,710 | 25,280 |
CSS | 35 | 1,636 | 203 | 15,354 |
SVG | 11 | 8 | 0 | 1,947 |
JSON | 3 | 0 | 0 | 3 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 73.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 75 | |
▷ Abstract classes | 2 | 2.67% |
▷ Concrete classes | 73 | 97.33% |
▷ Final classes | 0 | 0.00% |
Methods | 1,420 | |
▷ Static methods | 205 | 14.44% |
▷ Public methods | 983 | 69.23% |
▷ Protected methods | 65 | 4.58% |
▷ Private methods | 372 | 26.20% |
Functions | 165 | |
▷ Named functions | 162 | 98.18% |
▷ Anonymous functions | 3 | 1.82% |
Constants | 147 | |
▷ Global constants | 98 | 66.67% |
▷ Class constants | 49 | 33.33% |
▷ Public constants | 49 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
18 PNG files occupy 0.23MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon.png | 1.30KB | 0.78KB | ▼ 40.12% |
assets/images/ico29.png | 4.92KB | 3.13KB | ▼ 36.37% |
freemius/assets/img/primary-addon-for-elementor.png | 3.89KB | 1.42KB | ▼ 63.51% |
assets/images/ico25.png | 19.09KB | 10.78KB | ▼ 43.52% |
assets/images/ico2.png | 1.37KB | 0.47KB | ▼ 65.79% |