Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.52MB] [CPU: ▼288.82ms] Passed 4 tests
Analyzing server-side resources used by Bg Bible References
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.18 ▲0.66 | 55.91 ▲6.29 |
Dashboard /wp-admin | 3.94 ▲0.53 | 37.76 ▲4.62 |
Posts /wp-admin/edit.php | 4.17 ▲0.52 | 39.60 ▲2.74 |
Add New Post /wp-admin/post-new.php | 7.49 ▲0.52 | 99.44 ▼1,158.89 |
Media Library /wp-admin/upload.php | 3.82 ▲0.51 | 26.15 ▼3.76 |
Bible References /wp-admin/options-general.php?page=bg-biblie-references/bg_bibrefs.php | 4.00 | 26.31 |
Server storage [IO: ▲42.41MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please try to fix the following items
- Total filesystem usage must be limited to 25MB (currently using 42.41MB)
Filesystem: 182 new files
Database: no new tables, 42 new options
New WordPress options |
---|
bg_bibrefs_verses_lang |
bg_bibrefs_exceptions |
bg_bibrefs_norm_refs |
widget_bg_bibrefs_bible_search_widget |
bg_bibrefs_romeh |
bg_bibrefs_c_font |
bg_bibrefs_page |
bg_bibrefs_interpret |
bg_bibrefs_i_lang |
bg_bibrefs_folders |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Bg Bible References
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,779 ▲57 | 15.87 ▲0.20 | 6.96 ▲0.91 | 2.53 ▼0.06 |
Dashboard /wp-admin | 2,895 ▲34 | 6.15 ▼0.08 | 116.95 ▼18.84 | 151.57 ▼8.75 |
Posts /wp-admin/edit.php | 2,698 ▲4 | 3.24 ▲0.00 | 63.89 ▲2.80 | 137.68 ▲1.52 |
Add New Post /wp-admin/post-new.php | 1,849 ▲76 | 22.72 ▲1.62 | 420.03 ▼16.87 | 171.94 ▲12.81 |
Media Library /wp-admin/upload.php | 1,702 ▲4 | 5.47 ▼0.03 | 137.83 ▲0.96 | 179.34 ▼16.64 |
Bible References /wp-admin/options-general.php?page=bg-biblie-references/bg_bibrefs.php | 1,997 | 2.55 | 62.40 | 168.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 3 options
- widget_bg_bibrefs_bible_widget
- widget_bg_bibrefs_quote_widget
- widget_bg_bibrefs_bible_search_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=bg-biblie-references/bg_bibrefs.php
- > Warning in wp-content/plugins/bg-biblie-references/includes/settings.php+475
opendir(wp-content/uploads/bible/): failed to open dir: No such file or directory
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 take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/bg-biblie-references/bg_bibrefs.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bg-biblie-references/includes/books.php on line 23
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/bg-biblie-references/includes/books.php on line 23
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/bg-biblie-references/includes/books.php on line 23
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: orthodoxy, bible, christianity
bg-biblie-references/bg_bibrefs.php 85% from 13 tests
This is the main PHP file of "Bg Bible References" version 3.18.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bg-biblie-references.php" instead of "bg_bibrefs.php")
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
There were no executable files found in this plugin6,395 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 387 | 644 | 3,499 |
PO File | 6 | 1,034 | 1,250 | 2,480 |
JavaScript | 2 | 23 | 41 | 261 |
CSS | 1 | 4 | 15 | 155 |
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.39 |
Average class complexity | 19.75 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 4.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 50 | |
▷ Named functions | 48 | 96.00% |
▷ Anonymous functions | 2 | 4.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/expand.png | 0.23KB | 0.13KB | ▼ 44.44% |
share42/icons.png | 4.25KB | 2.40KB | ▼ 43.49% |