84% netleader-aviator

Code Review | NetLeader Aviator

WordPress plugin NetLeader Aviator scored84%from 54 tests.

About plugin

  • Plugin page: netleader-aviator
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1
  • WordPress version: 6.3.1
  • First release: Sep 6, 2018
  • Latest release: Nov 12, 2022
  • Number of updates: 14
  • Update frequency: every 109.2 days
  • Top authors: netleader (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,057 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.46ms] Passed 4 tests

Analyzing server-side resources used by NetLeader Aviator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0745.54 ▼1.93
Dashboard /wp-admin3.37 ▲0.0755.19 ▼2.88
Posts /wp-admin/edit.php3.42 ▲0.0670.21 ▲15.93
Add New Post /wp-admin/post-new.php5.95 ▲0.0690.42 ▼17.10
Media Library /wp-admin/upload.php3.29 ▲0.0640.24 ▲4.08

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: 1 new table, 6 new options
New tables
wp_nlaviator1
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

NetLeader Aviator: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.25 ▼0.001.69 ▼0.2545.71 ▼0.61
Dashboard /wp-admin2,195 ▲185.52 ▼0.1582.17 ▼17.8237.60 ▼4.09
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0034.27 ▼2.7430.48 ▼3.46
Add New Post /wp-admin/post-new.php1,526 ▼223.13 ▼0.23638.21 ▼31.9062.62 ▲7.16
Media Library /wp-admin/upload.php1,400 ▼04.17 ▲0.0697.92 ▼13.9844.14 ▼2.18

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/netleader-aviator/netleader-aviator.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Contributors: Plugin contributors not specified
The official readme.txt is a good inspiration

netleader-aviator/netleader-aviator.php Passed 13 tests

This is the main PHP file of "NetLeader Aviator" version 1.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
53 characters long description:
Aircraft Weight and Balance Calculator from NetLeader

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin994 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP17580742
CSS108184
HTML113068

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 1.73MB with 1.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/nlavexcgenv.png1,303.25KB776.00KB▼ 40.46%
images/nlavcgenv.png66.59KB17.47KB▼ 73.76%
images/nlavuser.png106.68KB31.31KB▼ 70.65%
images/nlavloading.png122.24KB37.00KB▼ 69.74%
images/nlavdesc.png177.82KB38.94KB▼ 78.10%