Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼11.40ms] Passed 4 tests
This is a short check of server-side resources used by GAPlugin - LightBox
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 37.93 ▼6.23 |
Dashboard /wp-admin | 3.38 ▲0.03 | 47.70 ▼22.25 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 50.82 ▲1.57 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 88.57 ▼18.68 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 40.28 ▲6.11 |
GAPlugin /wp-admin/admin.php?page=gap-admin-page | 3.27 | 31.70 |
Lightbox /wp-admin/admin.php?page=gap-admin-page-lightbox | 3.27 | 32.66 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for GAPlugin - LightBox
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,862 ▲91 | 14.48 ▼0.10 | 2.85 ▲0.85 | 43.44 ▼0.17 |
Dashboard /wp-admin | 2,237 ▲49 | 4.91 ▼0.94 | 100.61 ▼5.86 | 79.90 ▲35.58 |
Posts /wp-admin/edit.php | 2,117 ▲25 | 1.98 ▼0.03 | 35.11 ▼3.53 | 39.50 ▲8.87 |
Add New Post /wp-admin/post-new.php | 1,547 ▲33 | 23.04 ▲5.50 | 725.27 ▲28.39 | 51.77 ▼6.53 |
Media Library /wp-admin/upload.php | 1,413 ▲25 | 4.23 ▲0.03 | 100.70 ▲1.36 | 82.20 ▲34.25 |
GAPlugin /wp-admin/admin.php?page=gap-admin-page | 784 | 2.02 | 27.81 | 28.49 |
Lightbox /wp-admin/admin.php?page=gap-admin-page-lightbox | 840 | 2.14 | 25.94 | 25.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/lightbox-ga/gaplugin-lightbox-plugin.php
- > /wp-content/plugins/lightbox-ga/includes/lightbox-css.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'GAPlugin\\AdminPage' not found in wp-content/plugins/lightbox-ga/includes/LightBox.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: navigation, gallery, images, lightbox
lightbox-ga/gaplugin-lightbox-plugin.php 85% from 13 tests
The entry point to "GAPlugin - LightBox" version 0.01.00.00 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("lightbox-ga.php" instead of "gaplugin-lightbox-plugin.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected644 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 20 | 92 | 240 |
JavaScript | 2 | 12 | 64 | 130 |
SVG | 4 | 0 | 2 | 109 |
CSS | 1 | 2 | 0 | 96 |
PO File | 1 | 19 | 29 | 37 |
Markdown | 1 | 11 | 0 | 32 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 23 | 100.00% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin