90% iguga-bible

Code Review | iGuga Bible

WordPress plugin iGuga Bible scored90%from 54 tests.

About plugin

  • Plugin page: iguga-bible
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.2.1
  • WordPress version: 6.3.1
  • First release: May 18, 2019
  • Latest release: May 22, 2019
  • Number of updates: 7
  • Update frequency: every 0.9 days
  • Top authors: ivanmota (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,281 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.00ms] Passed 4 tests

Server-side resources used by iGuga Bible
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0244.26 ▼0.59
Dashboard /wp-admin3.35 ▲0.0451.18 ▼4.70
Posts /wp-admin/edit.php3.40 ▲0.0447.40 ▲0.70
Add New Post /wp-admin/post-new.php5.93 ▲0.0489.12 ▼10.30
Media Library /wp-admin/upload.php3.27 ▲0.0435.72 ▼0.42
iGuga Bible /wp-admin/tools.php?page=iguga_bible3.2433.28

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
igbible_settings
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
igbible_db_ver

Browser metrics Passed 4 tests

iGuga Bible: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.19 ▼0.162.13 ▼0.0247.09 ▲3.75
Dashboard /wp-admin2,202 ▲225.65 ▼0.0283.71 ▼14.0639.29 ▼3.24
Posts /wp-admin/edit.php2,107 ▲101.98 ▼0.0439.33 ▲2.7033.55 ▼1.15
Add New Post /wp-admin/post-new.php1,540 ▲1118.42 ▼4.61652.83 ▲36.6166.91 ▲12.44
Media Library /wp-admin/upload.php1,404 ▲14.19 ▼0.0297.87 ▼2.3342.39 ▼1.44
iGuga Bible /wp-admin/tools.php?page=iguga_bible8551.9921.6727.84

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: acf, bible shortcode, bible, almeida corrected and faithful, dictionary shortcode

iguga-bible/iguga-bible.php Passed 13 tests

The main PHP file in "iGuga Bible" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
104 characters long description:
Easy way to add Almeida Corrected and Faithful (ACF) by Trinitarian Bible Society of Brazil to your site

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 plugin568 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP881186369
PO File24042152
Sass15046
CSS1011

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/paypal.png1.57KB1.58KB0.00%