94% advamentor

Code Review | Advamentor

WordPress plugin Advamentor scored 94% from 54 tests.

About plugin

  • Plugin page: advamentor
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.1
  • WordPress version: 5.8.1
  • First release: Apr 30, 2019
  • Latest release: Jun 12, 2019
  • Number of updates: 8
  • Update frequency: every 5.4 days
  • Top authors: themexa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 689 total downloads

Benchmarks

Plugin footprint Passed 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.03MB] [CPU: ▼132.82ms] Passed 4 tests

Analyzing server-side resources used by Advamentor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1542.63 ▲20.95
Dashboard /wp-admin3.09 ▲0.0368.86 ▲30.49
Posts /wp-admin/edit.php3.14 ▲0.0351.56 ▲6.20
Add New Post /wp-admin/post-new.php5.45 ▲0.02104.09 ▼552.74
Media Library /wp-admin/upload.php3.03 ▲0.0236.75 ▼5.67

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 84 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Advamentor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,699 ▲10315.89 ▲0.3710.83 ▲1.2546.33 ▼0.89
Dashboard /wp-admin2,993 ▲595.89 ▼0.06147.17 ▼1.45120.31 ▲1.37
Posts /wp-admin/edit.php2,760 ▲212.69 ▼0.0172.29 ▲3.8095.21 ▲1.38
Add New Post /wp-admin/post-new.php1,698 ▲1518.76 ▼0.13402.89 ▲16.36114.78 ▼4.92
Media Library /wp-admin/upload.php1,828 ▲215.02 ▼0.01180.77 ▲20.90120.59 ▼14.25

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advamentor/includes/plugin-functions.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advamentor/includes/classes/class-advamentor.php:81
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advamentor/includes/admin.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/advamentor/includes/templates/admin.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: elements, essential, elementor, widgets, addons...

advamentor/advamentor.php Passed 13 tests

The main PHP file in "Advamentor" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
51 characters long description:
Premium & Advanced Essential Elements for Elementor

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected15,977 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
PHP211,51490011,836
JavaScript147269732,762
CSS9202431,366
SVG11013

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity15.47
▷ Minimum class complexity1.00
▷ Maximum class complexity33.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes16.67%
Methods99
▷ Static methods11.01%
▷ Public methods6464.65%
▷ Protected methods3535.35%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
19 PNG files occupy 14.13MB with 8.64MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/front/images/evezza.png1,516.13KB746.07KB▼ 50.79%
assets/front/images/aetrio.png1,677.29KB558.09KB▼ 66.73%
assets/front/images/advanced-banner/evezza.png1,516.13KB746.07KB▼ 50.79%
assets/front/images/person2.png268.57KB86.36KB▼ 67.84%
assets/front/images/eeta.png302.51KB92.47KB▼ 69.43%