Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.05MB] [CPU: ▼15.99ms] Passed 4 tests
A check of server-side resources used by Lasgo
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.18 | 43.14 ▼0.25 |
Dashboard /wp-admin | 3.25 ▼0.06 | 28.67 ▼17.30 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 33.07 ▼14.71 |
Add New Post /wp-admin/post-new.php | 5.62 ▼0.27 | 70.01 ▼26.53 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 29.67 ▼5.42 |
Server storage [IO: ▲1.79MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Lasgo
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,980 ▲234 | 14.06 ▼0.33 | 2.33 ▲0.57 | 43.86 ▲6.07 |
Dashboard /wp-admin | 2,358 ▲167 | 5.95 ▲0.05 | 136.60 ▲32.50 | 80.92 ▲41.21 |
Posts /wp-admin/edit.php | 2,262 ▲173 | 2.86 ▲0.87 | 62.10 ▲24.76 | 45.40 ▲12.39 |
Add New Post /wp-admin/post-new.php | 1,666 ▲152 | 23.79 ▲6.07 | 652.78 ▼41.73 | 41.39 ▼19.56 |
Media Library /wp-admin/upload.php | 1,544 ▲159 | 5.33 ▲1.02 | 136.49 ▲33.94 | 53.91 ▲11.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lasgo/includes/levels.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lasgo/includes/points.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lasgo/includes/levels.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png), #4 (screenshot-4.png), #5 (screenshot-5.png), #6 (screenshot-6.png), #7 (screenshot-7.png)
lasgo/lasgo.php Passed 13 tests
Analyzing the main PHP file in "Lasgo" version 1.0
81 characters long description:
Learn-as-you-go animated tutorial to help you improve your knowledge of WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin7,257 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Sass | 9 | 1,152 | 14 | 2,303 |
LESS | 9 | 1,152 | 87 | 2,231 |
CSS | 3 | 49 | 44 | 1,346 |
JavaScript | 2 | 75 | 2 | 578 |
PHP | 3 | 66 | 11 | 400 |
SVG | 1 | 0 | 0 | 399 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 0.67MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 91.32KB | 32.37KB | ▼ 64.55% |
images/lasgo_ball.png | 2.28KB | 1.72KB | ▼ 24.58% |
screenshot-7.png | 69.83KB | 19.51KB | ▼ 72.06% |
screenshot-5.png | 92.86KB | 33.75KB | ▼ 63.66% |
screenshot-4.png | 94.40KB | 30.28KB | ▼ 67.92% |