84% esv-crossref

Code Review | = ESV CrossRef

WordPress plugin = ESV CrossRef scored84%from 54 tests.

About plugin

  • Plugin page: esv-crossref
  • Plugin version: 2.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.1-6.3
  • WordPress version: 6.3.1
  • First release: Nov 2, 2010
  • Latest release: Jul 26, 2023
  • Number of updates: 56
  • Update frequency: every 83.0 days
  • Top authors: dwickwire (67.86%)adamzapcrossway (33.93%)

Code review

54 tests

User reviews

6 reviews

Install metrics

500+ active /10,049 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.88ms] Passed 4 tests

An overview of server-side resources used by = ESV CrossRef
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.50 ▼3.80
Dashboard /wp-admin3.31 ▲0.0048.66 ▼0.48
Posts /wp-admin/edit.php3.36 ▲0.0044.61 ▲0.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.76 ▼3.55
Media Library /wp-admin/upload.php3.24 ▲0.0033.52 ▲2.39

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for = ESV CrossRef
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲8616.59 ▲1.9871.32 ▲69.6744.78 ▲2.60
Dashboard /wp-admin2,192 ▲155.62 ▲0.0180.44 ▼16.5939.94 ▲1.02
Posts /wp-admin/edit.php2,100 ▼32.00 ▲0.0134.25 ▼9.7532.88 ▼4.72
Add New Post /wp-admin/post-new.php1,526 ▼1022.90 ▲4.73646.77 ▲26.8248.50 ▼20.49
Media Library /wp-admin/upload.php1,400 ▼04.21 ▼0.0797.99 ▼4.7942.68 ▼1.01

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/esv-crossref/esv-crossreference-tool.php:19

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: references, bible, tagging, scripture, esv...

esv-crossref/esv-crossreference-tool.php 85% from 13 tests

The entry point to "= ESV CrossRef" version 2.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("esv-crossref.php" instead of "esv-crossreference-tool.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 145 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected7 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1487

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.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
No PNG files were detected