Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼7.09ms] Passed 4 tests
Server-side resources used by Lightpost
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.31 ▼3.50 |
Dashboard /wp-admin | 3.40 ▲0.10 | 51.85 ▲0.48 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 47.36 ▼3.64 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 87.00 ▼15.85 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 34.04 ▼5.35 |
Lightpost /wp-admin/options-general.php?page=lightpost | 3.32 | 39.22 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 12 new options
New WordPress options |
---|
lightpost_theme |
can_compress_scripts |
lightpost_sermon_archive_page_id |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
lightpost_bible_class_registration_page_id |
lightpost_directory_disclaimer |
lightpost_api_key |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Lightpost
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.69 ▲0.34 | 1.66 ▼0.14 | 40.52 ▼5.91 |
Dashboard /wp-admin | 2,199 ▲19 | 5.68 ▲0.01 | 85.97 ▼0.54 | 41.41 ▼2.37 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.98 ▼0.04 | 36.31 ▼4.87 | 34.75 ▼3.44 |
Add New Post /wp-admin/post-new.php | 1,534 ▲6 | 23.15 ▲0.03 | 657.06 ▼13.47 | 60.79 ▲2.09 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.20 ▲0.03 | 96.09 ▼5.45 | 44.43 ▼3.64 |
Lightpost /wp-admin/options-general.php?page=lightpost | 975 | 2.16 | 24.93 | 30.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/lightpost/views/directory.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/lightpost/views/family.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function Lightpost\\is_admin() in wp-content/plugins/lightpost/includes/Settings.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/lightpost/views/admin.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/lightpost/views/bible_classes.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/lightpost/views/sermons.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: calendar, church, management, bible class, sermons...
lightpost/lightpost.php Passed 13 tests
Analyzing the main PHP file in "Lightpost" version 1.1.4
109 characters long description:
This plugin allows churches to display content from their Lightpost account on their Wordpress-based website.
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
Success! There were no dangerous files found in this plugin10,655 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 1,234 | 14 | 8,385 |
JSON | 2 | 0 | 0 | 1,317 |
PHP | 11 | 115 | 12 | 931 |
SVG | 6 | 0 | 0 | 19 |
Sass | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 9.80 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 2 | 9.52% |
▷ Public methods | 17 | 80.95% |
▷ Protected methods | 3 | 14.29% |
▷ Private methods | 1 | 4.76% |
Functions | 6 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 6 | 100.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected