84% wp-bibtex

Code Review | WP-BibTeX

WordPress plugin WP-BibTeX scored84%from 54 tests.

About plugin

  • Plugin page: wp-bibtex
  • Plugin version: 3.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2
  • WordPress version: 6.3.1
  • First release: Dec 17, 2016
  • Latest release: Apr 23, 2023
  • Number of updates: 31
  • Update frequency: every 74.6 days
  • Top authors: zjhzxhz (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /3,387 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.81ms] Passed 4 tests

Analyzing server-side resources used by WP-BibTeX
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1139.57 ▼2.11
Dashboard /wp-admin3.40 ▲0.0944.33 ▼1.63
Posts /wp-admin/edit.php3.45 ▲0.0948.52 ▼4.12
Add New Post /wp-admin/post-new.php5.98 ▲0.0989.43 ▼7.38
Media Library /wp-admin/upload.php3.32 ▲0.0939.57 ▲5.85
WP-BibTeX /wp-admin/options-general.php?page=WP-BibTeX3.2838.15

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 11 new options
New WordPress options
highlight_desc_col_class
blog_owner_name
db_upgraded
highlight_row_class
widget_recent-comments
theysaidso_admin_options
additional_fields
can_compress_scripts
widget_theysaidso_widget
highlight_img_col_class
...

Browser metrics Passed 4 tests

Checking browser requirements for WP-BibTeX
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲13014.04 ▼0.255.36 ▲3.2538.28 ▼9.98
Dashboard /wp-admin2,210 ▲224.86 ▼1.04107.88 ▲4.3140.55 ▼5.07
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0540.06 ▼2.4237.47 ▼0.49
Add New Post /wp-admin/post-new.php1,541 ▲2723.05 ▲5.55651.62 ▼44.3054.96 ▼7.03
Media Library /wp-admin/upload.php1,392 ▲14.28 ▲0.10105.99 ▲3.3343.79 ▲2.54
WP-BibTeX /wp-admin/options-general.php?page=WP-BibTeX9292.2025.6626.89

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 11 options in the database
    • db_upgraded
    • widget_recent-posts
    • highlight_desc_col_class
    • theysaidso_admin_options
    • additional_fields
    • widget_recent-comments
    • highlight_row_class
    • blog_owner_name
    • can_compress_scripts
    • widget_theysaidso_widget
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-bibtex/wp-bibtex-options.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-bibtex/wp-bibtex.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === wp-bibtex === )
Please take inspiration from this readme.txt

wp-bibtex/wp-bibtex.php Passed 13 tests

The main PHP file in "WP-BibTeX" ver. 3.0.0 adds more information about the plugin and also serves as the entry point for this plugin
94 characters long description:
A plugin helps format BibTeX entries to display a bibliography or cite citations in WordPress.

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
Success! There were no dangerous files found in this plugin599 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP241109523
CSS111154
JavaScript12122

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions16
▷ Named functions1487.50%
▷ Anonymous functions212.50%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected