83% pixer-necessary-addons-for-elementor

Code Review | Pixer Necessary Addons For Elementor

WordPress plugin Pixer Necessary Addons For Elementor scored83%from 54 tests.

About plugin

  • Plugin page: pixer-necessary-a...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2.4
  • WordPress version: 6.3.1
  • First release: Mar 28, 2020
  • Latest release: Mar 29, 2020
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: pixertheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /921 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.89ms] Passed 4 tests

Analyzing server-side resources used by Pixer Necessary Addons For Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0245.19 ▲2.02
Dashboard /wp-admin3.32 ▼0.0249.76 ▼11.36
Posts /wp-admin/edit.php3.37 ▲0.0249.34 ▼1.20
Add New Post /wp-admin/post-new.php5.90 ▲0.0291.55 ▼13.01
Media Library /wp-admin/upload.php3.24 ▲0.0238.15 ▲2.01

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Pixer Necessary Addons For Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.33 ▼0.764.75 ▲2.9638.46 ▼7.50
Dashboard /wp-admin2,227 ▲395.85 ▲0.77104.87 ▼0.6341.37 ▼2.88
Posts /wp-admin/edit.php2,103 ▲141.99 ▼0.0136.60 ▼9.3733.16 ▼2.69
Add New Post /wp-admin/post-new.php1,546 ▲1322.84 ▼0.61648.92 ▼9.2865.66 ▲10.24
Media Library /wp-admin/upload.php1,403 ▲184.34 ▲0.1395.22 ▼28.8546.24 ▼4.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function pixer\\add_action() in wp-content/plugins/pixer-necessary-addons-for-elementor/plugin.php:146

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed: The official readme.txt is a good inspiration

pixer-necessary-addons-for-elementor/pixer-slider.php 85% from 13 tests

The primary PHP file in "Pixer Necessary Addons For Elementor" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("pixer-necessary-addons-for-elementor.php" instead of "pixer-slider.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
There were no executable files found in this plugin7,858 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
CSS10601453,912
JavaScript6853702,144
PHP173322011,802

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity2.56
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.26
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes16.25%
Methods95
▷ Static methods11.05%
▷ Public methods6871.58%
▷ Protected methods2728.42%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/polygon.png0.88KB0.48KB▼ 45.28%
assets/images/banner_bg02.png91.68KB24.09KB▼ 73.73%
assets/images/dot_circle.png44.36KB41.42KB▼ 6.61%