73% primary-addon-for-elementor

Code Review | Primary Addon for Elementor

WordPress plugin Primary Addon for Elementor scored73%from 54 tests.

About plugin

  • Plugin page: primary-addon-for...
  • Plugin version: 1.5.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 3, 2020
  • Latest release: Jul 21, 2023
  • Number of updates: 27
  • Update frequency: every 42.3 days
  • Top authors: nicheaddons (100%)

Code review

54 tests

User reviews

1 review

Install metrics

7,000+ active /51,116 total downloads

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)
PageMemory (MB)CPU Time (ms)
Home /8.89 ▲5.4269.20 ▲31.82
Dashboard /wp-admin8.91 ▲5.6071.58 ▲14.65
Posts /wp-admin/edit.php8.91 ▲5.5581.21 ▲23.14
Add New Post /wp-admin/post-new.php9.33 ▲3.44108.70 ▲6.20
Media Library /wp-admin/upload.php8.91 ▲5.6877.26 ▲41.79
Enable & Disable /wp-admin/admin.php?page=napae_admin_sub_page8.9162.74
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius8.9159.53
Primary Addon /wp-admin/admin.php?page=napae_admin_page8.9169.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,008 ▲22214.33 ▲0.0220.24 ▲18.2230.75 ▼13.72
Dashboard /wp-admin2,251 ▲715.52 ▼0.0585.25 ▼4.5942.00 ▼5.74
Posts /wp-admin/edit.php2,160 ▲572.15 ▲0.1438.06 ▼4.1136.24 ▲0.42
Add New Post /wp-admin/post-new.php1,566 ▲2122.19 ▼0.94706.77 ▲39.7952.85 ▼8.59
Media Library /wp-admin/upload.php1,462 ▲624.22 ▼0.09105.15 ▼6.6652.34 ▲5.25
Enable & Disable /wp-admin/admin.php?page=napae_admin_sub_page1,1922.1929.5330.12
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,0941.8322.6227.48
Primary Addon /wp-admin/admin.php?page=napae_admin_page9971.8627.6462.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

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
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
PHP1508,99318,16553,418
JavaScript315,6396,71025,280
CSS351,63620315,354
SVG11801,947
JSON3003

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 code0.55
Average class complexity73.59
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.92
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes75
▷ Abstract classes22.67%
▷ Concrete classes7397.33%
▷ Final classes00.00%
Methods1,420
▷ Static methods20514.44%
▷ Public methods98369.23%
▷ Protected methods654.58%
▷ Private methods37226.20%
Functions165
▷ Named functions16298.18%
▷ Anonymous functions31.82%
Constants147
▷ Global constants9866.67%
▷ Class constants4933.33%
▷ Public constants49100.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
FileSize - originalSize - compressedSavings
assets/images/icon.png1.30KB0.78KB▼ 40.12%
assets/images/ico29.png4.92KB3.13KB▼ 36.37%
freemius/assets/img/primary-addon-for-elementor.png3.89KB1.42KB▼ 63.51%
assets/images/ico25.png19.09KB10.78KB▼ 43.52%
assets/images/ico2.png1.37KB0.47KB▼ 65.79%