83% academy-starter-templates

Code Review | Academy Starter Templates

WordPress plugin Academy Starter Templates scored 83% from 54 tests.

About plugin

  • Plugin page: academy-starter-t...
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.3-6.3
  • WordPress version: 6.3.1
  • First release: Feb 22, 2022
  • Latest release: Sep 27, 2023
  • Number of updates: 9
  • Update frequency: every 64.7 days
  • Top authors: academylms (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active / 7,609 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.43MB] [CPU: ▼2.95ms] Passed 4 tests

This is a short check of server-side resources used by Academy Starter Templates
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.91 ▲0.4543.88 ▲2.26
Dashboard /wp-admin3.77 ▲0.4650.86 ▼2.80
Posts /wp-admin/edit.php3.82 ▲0.4650.99 ▲4.49
Add New Post /wp-admin/post-new.php6.29 ▲0.4089.01 ▼14.50
Media Library /wp-admin/upload.php3.63 ▲0.4038.41 ▲3.23
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins3.7035.84

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Academy Starter Templates
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.18 ▼1.122.05 ▲0.4041.90 ▼5.49
Dashboard /wp-admin2,231 ▲465.80 ▲0.90107.93 ▲0.5642.90 ▲0.70
Posts /wp-admin/edit.php2,128 ▲572.09 ▲0.0340.42 ▲1.1741.28 ▲7.73
Add New Post /wp-admin/post-new.php1,555 ▲2223.33 ▲0.24689.05 ▲26.9455.24 ▼2.86
Media Library /wp-admin/upload.php1,421 ▲304.24 ▲0.00103.52 ▲4.4648.72 ▲0.92
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins9592.2126.8031.12

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 18× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'AcademyStarter\\Library\\PluginInstaller' not found in wp-content/plugins/academy-starter-templates/views/install-plugins.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/academy-starter-templates/includes/library/awesomemotive/wxr-importer.php:7
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/academy-starter-templates/includes/library/plugin-installer-skin-silent.php on line 12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/academy-starter-templates/includes/library/wpcli-commands.php:13
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-upgrader.php' (include_path='.:/usr/share/php') in wp-content/plugins/academy-starter-templates/includes/library/plugin-installer-skin-silent.php on line 12
    • > PHP Fatal error
      Uncaught Error: Class 'AcademyStarter\\Library\\PluginInstaller' not found in wp-content/plugins/academy-starter-templates/views/import.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/academy-starter-templates/includes/library/tgm-plugin-activation.php:2024
    • > PHP Fatal error
      Uncaught Error: Class 'AcademyStarter\\Library\\Awesomemotive\\WxrImporter' not found in wp-content/plugins/academy-starter-templates/includes/library/wxr-importer.php:13
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-upgrader.php): failed to open stream: No such file or directory in wp-content/plugins/academy-starter-templates/includes/library/plugin-installer-skin-silent.php on line 12
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-upgrader.php): failed to open stream: No such file or directory in wp-content/plugins/academy-starter-templates/includes/library/plugin-installer-skin.php on line 12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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 require attention:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
  • Screenshots: These screenshots need descriptions #1, #10, #11, #2, #3, #4, #5, #6, #7, #8, #9 in academy-starter-templates/assets to your readme.txt
The official readme.txt might help

academy-starter-templates/academy-starter-templates.php Passed 13 tests

"Academy Starter Templates" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
37 characters long description:
Demo importer plugin for academy lms.

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
There were no executable files found in this plugin34,140 lines of code in 54 files:
LanguageFilesBlank linesComment linesLines of code
XML1679622,338
PHP311,7613,7826,369
CSS21303,395
Sass1204111,182
JavaScript1121126729
SVG1800127

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity31.03
▷ Minimum class complexity1.00
▷ Maximum class complexity290.00
Average method complexity4.07
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes33
▷ Abstract classes00.00%
▷ Concrete classes33100.00%
▷ Final classes26.06%
Methods320
▷ Static methods5416.88%
▷ Public methods22770.94%
▷ Protected methods6319.69%
▷ Private methods309.38%
Functions15
▷ Named functions1066.67%
▷ Anonymous functions533.33%
Constants16
▷ Global constants1168.75%
▷ Class constants531.25%
▷ Public constants5100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 1.43MB with 0.96MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
demo-data/single-instructor.png162.41KB56.37KB▼ 65.29%
demo-data/marketplace.png321.33KB91.09KB▼ 71.65%
demo-data/university.png983.50KB350.66KB▼ 64.35%