84% graduates-exporter-learndash

Code Review | LearnDash Exporter

WordPress plugin LearnDash Exporter scored 84% from 54 tests.

About plugin

  • Plugin page: graduates-exporte...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 7, 2018
  • Latest release: Mar 7, 2018
  • Number of updates: 2
  • Update frequency: every 3.5 days
  • Top authors: mcostales84 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active / 2,646 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
Install script ran successfully

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

Analyzing server-side resources used by LearnDash Exporter
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.15 ▼2.68
Dashboard /wp-admin3.31 ▲0.0146.56 ▼3.06
Posts /wp-admin/edit.php3.36 ▲0.0151.01 ▲5.00
Add New Post /wp-admin/post-new.php5.91 ▲0.0392.79 ▼9.55
Media Library /wp-admin/upload.php3.24 ▲0.0134.46 ▲3.02

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

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

Browser metrics Passed 4 tests

LearnDash Exporter: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.35 ▼1.021.56 ▼0.2540.77 ▼5.25
Dashboard /wp-admin2,238 ▲474.92 ▲0.04107.28 ▲2.3439.93 ▼8.30
Posts /wp-admin/edit.php2,118 ▲292.09 ▲0.0841.40 ▲3.0235.15 ▼0.19
Add New Post /wp-admin/post-new.php1,547 ▲518.31 ▼0.09617.84 ▲18.7258.36 ▼1.45
Media Library /wp-admin/upload.php1,411 ▲204.26 ▲0.0696.07 ▼4.3740.98 ▼8.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/graduates-exporter-learndash/learndash-exporter.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: learndash, graduates, exporter

graduates-exporter-learndash/learndash-exporter.php 92% from 13 tests

This is the main PHP file of "LearnDash Exporter" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("graduates-exporter-learndash.php" instead of "learndash-exporter.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected155 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23216155

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected