Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure had errors
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▼0.38MB] [CPU: ▼13.35ms] Passed 4 tests
Server-side resources used by Flora LMS
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 44.57 ▲1.08 |
Dashboard /wp-admin | 3.62 ▲0.32 | 54.02 ▲0.35 |
Posts /wp-admin/edit.php | 3.67 ▲0.32 | 55.77 ▲5.13 |
Add New Post /wp-admin/post-new.php | 3.43 ▼2.45 | 40.25 ▼57.76 |
Media Library /wp-admin/upload.php | 3.54 ▲0.32 | 39.16 ▲2.95 |
Courses /wp-admin/edit.php?post_type=course | 3.59 | 40.29 |
Add New /wp-admin/post-new.php?post_type=course | 3.66 | 49.81 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 52 new files
Database: 2 new tables, 6 new options
New tables |
---|
flora_config |
flora_course |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Flora LMS: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲94 | 14.80 ▲0.38 | 1.73 ▼0.30 | 42.22 ▼1.89 |
Dashboard /wp-admin | 2,246 ▲43 | 5.86 ▲0.01 | 99.10 ▼3.86 | 77.75 ▲33.89 |
Posts /wp-admin/edit.php | 2,143 ▲43 | 2.02 ▲0.00 | 38.27 ▼0.12 | 36.90 ▼0.19 |
Add New Post /wp-admin/post-new.php | 1,713 ▲181 | 22.05 ▼1.25 | 764.11 ▲99.77 | 48.43 ▼5.95 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.32 ▲0.11 | 116.21 ▲10.01 | 88.94 ▲43.58 |
Courses /wp-admin/edit.php?post_type=course | 1,110 | 1.93 | 31.94 | 30.46 |
Add New /wp-admin/post-new.php?post_type=course | 2,182 | 7.55 | 169.46 | 124.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/flora-lms/src/Infrastructure/Repository.php+160
Undefined property: Src\Infrastructure\Repository::$coursePageName
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/flora-lms/vendor/firebase/php-jwt/tests/bootstrap.php
- > /wp-content/plugins/flora-lms/flora-lms.php
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'Src\\App\\HttpClientInterface' not found in wp-content/plugins/flora-lms/src/App/WordpressAdapterInterface.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/flora-lms/vendor/firebase/php-jwt/tests/JWTTest.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Src\\App\\RepositoryInterface' not found in wp-content/plugins/flora-lms/src/Infrastructure/Repository.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/flora-lms/templates/admin.php:3
- > PHP Fatal error
Uncaught Error: Interface 'Src\\App\\FloraLMSAdapterInterface' not found in wp-content/plugins/flora-lms/src/Infrastructure/FloraLMSAdapter.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/flora-lms/templates/products.php:3
- > PHP Fatal error
Uncaught Error: Interface 'Src\\App\\WordpressAdapterInterface' not found in wp-content/plugins/flora-lms/src/Infrastructure/WordpressAdapter.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% 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
Attributes that require attention:
- Contributors: Contributors not specified
flora-lms/flora-lms.php 92% from 13 tests
The entry point to "Flora LMS" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Git Repository: There should be no Git repositories present in your plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin2,327 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 389 | 681 | 1,993 |
Markdown | 1 | 32 | 0 | 168 |
JSON | 3 | 0 | 0 | 95 |
Bourne Shell | 1 | 2 | 4 | 31 |
XML | 1 | 1 | 0 | 18 |
YAML | 1 | 4 | 0 | 18 |
SVG | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 1.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 1 | 5.00% |
Methods | 212 | |
▷ Static methods | 22 | 10.38% |
▷ Public methods | 195 | 91.98% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 8.02% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.00% |
Constants | 34 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 34 | 100.00% |
▷ Public constants | 34 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 31.51KB | 12.50KB | ▼ 60.34% |
assets/screenshot-2.png | 84.61KB | 33.66KB | ▼ 60.21% |
assets/screenshot-3.png | 45.01KB | 19.35KB | ▼ 57.01% |