Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼135.58ms] Passed 4 tests
Analyzing server-side resources used by DeMomentSomTres Lazy Load for WP Canvas - Gallery
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 33.99 ▲9.99 |
Dashboard /wp-admin | 3.07 ▲0.01 | 54.31 ▲7.98 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 47.65 ▲2.97 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 112.95 ▼550.63 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 34.62 ▼2.65 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by DeMomentSomTres Lazy Load for WP Canvas - Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,697 ▲101 | 15.83 ▼0.07 | 7.55 ▼1.93 | 53.35 ▼3.89 |
Dashboard /wp-admin | 2,988 ▲57 | 5.90 ▼0.33 | 141.68 ▼5.97 | 111.69 ▼1.81 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.81 ▼0.01 | 79.05 ▲7.90 | 97.21 ▼1.62 |
Add New Post /wp-admin/post-new.php | 1,626 ▼57 | 21.39 ▲2.82 | 299.68 ▼92.74 | 111.75 ▼2.23 |
Media Library /wp-admin/upload.php | 1,825 ▲18 | 5.02 ▼0.01 | 155.95 ▲1.90 | 123.58 ▼16.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Please fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/demomentsomtres-wc-lazy/demomentsomtres-wc-lazy.php on line 15
- > PHP Warning
require_once(ABSPATH/wp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/demomentsomtres-wc-lazy/demomentsomtres-wc-lazy.php on line 15
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/demomentsomtres-wc-lazy/demomentsomtres-wc-lazy.php on line 15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: carousel gallery, masonry gallery, carousel, gallery slider, slider...
demomentsomtres-wc-lazy/demomentsomtres-wc-lazy.php Passed 13 tests
The main PHP file in "DeMomentSomTres Lazy Load for WP Canvas - Gallery" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
52 characters long description:
Adds BJ Lazy Load compatibility to WP Canvas Gallery
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 plugin201 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 39 | 28 | 136 |
PHP | 1 | 14 | 15 | 65 |
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.26 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 1 | 20.00% |
▷ Class constants | 4 | 80.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin