84% topbible

Code Review | TopBible for Wordpress

WordPress plugin TopBible for Wordpress scored84%from 54 tests.

About plugin

  • Plugin page: topbible
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8.2
  • WordPress version: 6.3.1
  • First release: Oct 11, 2017
  • Latest release: Oct 11, 2017
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: topchretien (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,011 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼6.47MB] [CPU: ▼1,312,264.44ms] Passed 4 tests

Server-side resources used by TopBible for Wordpress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0145.00 ▲2.35
Dashboard /wp-admin3.37 ▼25.9752.16 ▼5,249,040.70
Posts /wp-admin/edit.php3.48 ▲0.0850.13 ▼2.49
Add New Post /wp-admin/post-new.php5.97 ▲0.0490.86 ▼16.93
Media Library /wp-admin/upload.php3.29 ▲0.0241.58 ▲3.92

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for TopBible for Wordpress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.69 ▲0.201.65 ▲0.0245.98 ▲1.20
Dashboard /wp-admin2,195 ▲155.61 ▼0.0487.01 ▼1.2539.27 ▼0.99
Posts /wp-admin/edit.php2,100 ▼32.01 ▼0.0235.68 ▲0.5732.75 ▼4.26
Add New Post /wp-admin/post-new.php1,527 ▼123.06 ▼0.13671.36 ▲18.2639.32 ▼17.55
Media Library /wp-admin/upload.php1,391 ▼64.24 ▲0.06104.41 ▲1.9843.08 ▼3.14

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 were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/topbible/top-bible-link.php:125
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/topbible/template.php:4

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: topchretien, bible, topbible

topbible/top-bible-link.php 92% from 13 tests

The primary PHP file in "TopBible for Wordpress" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("topbible.php" instead of "top-bible-link.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin665 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript14373265
CSS192190
PHP32748185
Markdown121025

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
more.png0.59KB0.21KB▼ 64.47%
plus.png1.06KB0.49KB▼ 53.93%
link.png1.50KB1.23KB▼ 17.82%