78% aircraft-builders-log-time-tracker

Code Review | Aircraft Builders Log

WordPress plugin Aircraft Builders Log scored78%from 54 tests.

About plugin

  • Plugin page: aircraft-builders...
  • Plugin version: 20161117...
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Oct 10, 2016
  • Latest release: Nov 15, 2016
  • Number of updates: 15
  • Update frequency: every 3.8 days
  • Top authors: markstratman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /966 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.66ms] Passed 4 tests

A check of server-side resources used by Aircraft Builders Log
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0840.03 ▼2.01
Dashboard /wp-admin3.45 ▲0.0654.11 ▼12.48
Posts /wp-admin/edit.php3.55 ▲0.1562.51 ▲13.18
Add New Post /wp-admin/post-new.php6.05 ▲0.1293.92 ▼15.29
Media Library /wp-admin/upload.php3.37 ▲0.1042.63 ▲7.16
Airplane Sections /wp-admin/edit-tags.php?taxonomy=airplane_section3.3745.28

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_airplane_section_widget
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Aircraft Builders Log
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3714.68 ▼0.051.52 ▼0.3844.03 ▲2.61
Dashboard /wp-admin2,198 ▲185.70 ▲0.0695.23 ▼6.8639.16 ▼5.36
Posts /wp-admin/edit.php2,154 ▲512.14 ▲0.1444.69 ▲8.7839.54 ▲7.34
Add New Post /wp-admin/post-new.php6,332 ▲4,80420.85 ▼2.35853.40 ▲143.2170.99 ▼1.13
Media Library /wp-admin/upload.php1,406 ▲64.37 ▼0.02102.50 ▼7.4343.91 ▼1.85
Airplane Sections /wp-admin/edit-tags.php?taxonomy=airplane_section1,2582.2430.4530.87

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_airplane_section_widget
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/aircraft-builders-log-time-tracker/builders-log.php:13

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/edit-tags.php?taxonomy=airplane_section
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/aircraft-builders-log-time-tracker/js/airplane_section_taxonomy.js:4:86)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/edit-tags.php?taxonomy=airplane_section
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: builders log, time tracker, aircraft, kitplane

aircraft-builders-log-time-tracker/builders-log.php 77% from 13 tests

The main PHP file in "Aircraft Builders Log" ver. 20161117... adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 208 characters long)
  • Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "20161117...")
  • Main file name: Name the main plugin file the same as the plugin slug ("aircraft-builders-log-time-tracker.php" instead of "builders-log.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin297 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13828266
JavaScript12020
Markdown15011

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity14.50
▷ Minimum class complexity4.00
▷ Maximum class complexity25.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods850.00%
▷ Public methods1487.50%
▷ Protected methods00.00%
▷ Private methods212.50%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin