84% biblica-online-bible

Code Review | Biblica Bible Reader

WordPress plugin Biblica Bible Reader scored84%from 54 tests.

About plugin

  • Plugin page: biblica-online-bible
  • Plugin version: 1.0.5.0
  • PHP compatiblity: 8.0.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2
  • WordPress version: 6.3.1
  • First release: Nov 20, 2022
  • Latest release: May 23, 2023
  • Number of updates: 9
  • Update frequency: every 22.3 days
  • Top authors: biblica (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /736 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.00MB] [CPU: ▼5.77ms] Passed 4 tests

A check of server-side resources used by Biblica Bible Reader
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.57 ▲2.28
Dashboard /wp-admin3.31 ▲0.0054.00 ▲1.77
Posts /wp-admin/edit.php3.36 ▲0.0054.30 ▼2.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.18 ▼22.10
Media Library /wp-admin/upload.php3.23 ▲0.0040.18 ▼0.41

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 785 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Biblica Bible Reader
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.61 ▲0.261.69 ▼0.5248.19 ▲3.65
Dashboard /wp-admin2,195 ▲185.52 ▼0.1487.86 ▼9.4238.32 ▼5.91
Posts /wp-admin/edit.php2,100 ▼01.97 ▲0.0238.67 ▲2.1435.52 ▲0.17
Add New Post /wp-admin/post-new.php1,541 ▲1323.07 ▼0.03667.94 ▼5.6660.18 ▲0.58
Media Library /wp-admin/upload.php1,403 ▼04.19 ▲0.0195.61 ▼17.6139.92 ▼10.16

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

Smoke tests 75% 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 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
  • 377× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface' not found in wp-content/plugins/biblica-online-bible/vendor/symfony/cache/DependencyInjection/CachePoolClearerPass.php:21
    • > PHP Fatal error
      Uncaught Error: Interface 'Biblica\\Bible\\Translations\\Services\\SearchServiceInterface' not found in wp-content/plugins/biblica-online-bible/src/Biblica/Bible/ApiDotBibleApi/Components/SearchService.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/biblica-online-bible/vendor/twig/twig/src/Node/Expression/Binary/ModBinary.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\TestExpression' not found in wp-content/plugins/biblica-online-bible/vendor/twig/twig/src/Node/Expression/Test/NullTest.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\\Extension\\AbstractExtension' not found in wp-content/plugins/biblica-online-bible/vendor/twig/twig/src/Extension/DebugExtension.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/biblica-online-bible/vendor/twig/twig/src/TokenParser/WithTokenParser.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/biblica-online-bible/vendor/symfony/service-contracts/Test/ServiceLocatorTest.php:18
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/biblica-online-bible/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/biblica-online-bible/vendor/twig/twig/src/Node/TextNode.php:22
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\Cache\\Marshaller\\MarshallerInterface' not found in wp-content/plugins/biblica-online-bible/vendor/symfony/cache/Marshaller/DeflateMarshaller.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: online, search, bible, reader

biblica-online-bible/biblica-online-bible.php Passed 13 tests

"Biblica Bible Reader" version 1.0.5.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
60 characters long description:
Easily add the text of any Bible translation to your website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected65,356 lines of code in 731 files:
LanguageFilesBlank linesComment linesLines of code
PHP6059,66819,41045,921
CSS396234156,318
JavaScript211,5201,1475,116
Markdown301,56004,528
JSON22002,458
Twig83733588
PO File187113258
reStructuredText2104144107
YAML27146
XML12016

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity10.98
▷ Minimum class complexity1.00
▷ Maximum class complexity175.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces78
Interfaces75
Traits19
Classes494
▷ Abstract classes265.26%
▷ Concrete classes46894.74%
▷ Final classes10522.44%
Methods3,112
▷ Static methods31210.03%
▷ Public methods2,46679.24%
▷ Protected methods31810.22%
▷ Private methods32810.54%
Functions440
▷ Named functions18842.73%
▷ Anonymous functions25257.27%
Constants235
▷ Global constants62.55%
▷ Class constants22997.45%
▷ Public constants17576.42%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/jquery-ui-custom/images/ui-icons_cc0000_256x240.png4.51KB4.18KB▼ 7.28%
lib/jquery-ui-custom/images/ui-icons_555555_256x240.png6.91KB4.18KB▼ 39.47%
lib/jquery-ui-custom/images/ui-icons_777777_256x240.png6.94KB4.18KB▼ 39.78%
lib/jquery-ui-custom/images/ui-icons_ffffff_256x240.png6.33KB4.18KB▼ 33.99%
lib/jquery-ui-custom/images/ui-icons_444444_256x240.png6.92KB4.18KB▼ 39.61%