78% bible-online-popup

Code Review | Bible Online Popup

WordPress plugin Bible Online Popup scored78%from 54 tests.

About plugin

  • Plugin page: bible-online-popup
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.3
  • WordPress version: 6.3.1
  • First release: Feb 12, 2020
  • Latest release: Feb 13, 2020
  • Number of updates: 10
  • Update frequency: every 0.3 days
  • Top authors: maksimkuzmin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /900 total downloads

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 gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▲0.61ms] Passed 4 tests

A check of server-side resources used by Bible Online Popup
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.56 ▲1.58
Dashboard /wp-admin3.35 ▲0.0545.50 ▼2.29
Posts /wp-admin/edit.php3.40 ▲0.0548.56 ▲1.97
Add New Post /wp-admin/post-new.php5.93 ▲0.0596.28 ▲1.19
Media Library /wp-admin/upload.php3.27 ▲0.0536.92 ▲2.57
Bible Online Popup /wp-admin/options-general.php?page=bop-settings3.2230.45

Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Bible Online Popup
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,889 ▲15414.12 ▼0.265.54 ▲3.9339.56 ▲1.38
Dashboard /wp-admin2,213 ▲215.85 ▲0.89106.18 ▼8.6442.45 ▲1.51
Posts /wp-admin/edit.php2,093 ▲42.00 ▲0.0139.90 ▼4.4034.76 ▼0.61
Add New Post /wp-admin/post-new.php1,545 ▲3118.29 ▲0.75614.81 ▼78.4172.88 ▲16.92
Media Library /wp-admin/upload.php1,392 ▲44.20 ▼0.0294.34 ▼5.7941.58 ▼0.37
Bible Online Popup /wp-admin/options-general.php?page=bop-settings8502.0326.1067.57

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bop-settings
    • > Notice in wp-content/plugins/bible-online-popup/settings-page.php+146
    Trying to access array offset on value of type bool

SRP 50% 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
The following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bible-online-popup/tiny-mce.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/bible-online-popup/settings-page.php:150
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/bible-online-popup/settings-page.php:150

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: bible, api implementation

bible-online-popup/bible-online-popup.php 92% from 13 tests

The primary PHP file in "Bible Online Popup" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected567 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS2320219
PHP44932191
JavaScript2281196
PO File19535
SVG20026

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin