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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.91 ▲0.45 | 43.88 ▲2.26 |
Dashboard /wp-admin | 3.77 ▲0.46 | 50.86 ▼2.80 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 50.99 ▲4.49 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.40 | 89.01 ▼14.50 |
Media Library /wp-admin/upload.php | 3.63 ▲0.40 | 38.41 ▲3.23 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 3.70 | 35.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.18 ▼1.12 | 2.05 ▲0.40 | 41.90 ▼5.49 |
Dashboard /wp-admin | 2,231 ▲46 | 5.80 ▲0.90 | 107.93 ▲0.56 | 42.90 ▲0.70 |
Posts /wp-admin/edit.php | 2,128 ▲57 | 2.09 ▲0.03 | 40.42 ▲1.17 | 41.28 ▲7.73 |
Add New Post /wp-admin/post-new.php | 1,555 ▲22 | 23.33 ▲0.24 | 689.05 ▲26.94 | 55.24 ▼2.86 |
Media Library /wp-admin/upload.php | 1,421 ▲30 | 4.24 ▲0.00 | 103.52 ▲4.46 | 48.72 ▲0.92 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 959 | 2.21 | 26.80 | 31.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 1 | 67 | 96 | 22,338 |
PHP | 31 | 1,761 | 3,782 | 6,369 |
CSS | 2 | 13 | 0 | 3,395 |
Sass | 1 | 204 | 11 | 1,182 |
JavaScript | 1 | 121 | 126 | 729 |
SVG | 18 | 0 | 0 | 127 |
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 code | 0.43 |
Average class complexity | 31.03 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 290.00 |
Average method complexity | 4.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 33 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 33 | 100.00% |
▷ Final classes | 2 | 6.06% |
Methods | 320 | |
▷ Static methods | 54 | 16.88% |
▷ Public methods | 227 | 70.94% |
▷ Protected methods | 63 | 19.69% |
▷ Private methods | 30 | 9.38% |
Functions | 15 | |
▷ Named functions | 10 | 66.67% |
▷ Anonymous functions | 5 | 33.33% |
Constants | 16 | |
▷ Global constants | 11 | 68.75% |
▷ Class constants | 5 | 31.25% |
▷ Public constants | 5 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
demo-data/single-instructor.png | 162.41KB | 56.37KB | ▼ 65.29% |
demo-data/marketplace.png | 321.33KB | 91.09KB | ▼ 71.65% |
demo-data/university.png | 983.50KB | 350.66KB | ▼ 64.35% |