84% credibility

Code Review | Credibility

WordPress plugin Credibility scored84%from 54 tests.

About plugin

  • Plugin page: credibility
  • Plugin version: 1.22
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8
  • WordPress version: 6.3.1
  • First release: Feb 18, 2014
  • Latest release: Feb 24, 2014
  • Number of updates: 18
  • Update frequency: every 2.9 days
  • Top authors: ebinnion (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,517 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
This plugin's installer ran successfully

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

Server-side resources used by Credibility
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.68 ▼6.06
Dashboard /wp-admin3.35 ▲0.0145.58 ▼12.05
Posts /wp-admin/edit.php3.40 ▲0.0547.01 ▲2.80
Add New Post /wp-admin/post-new.php5.93 ▲0.0582.59 ▼10.56
Media Library /wp-admin/upload.php3.27 ▲0.0537.91 ▲2.36
Credibility /wp-admin/options-general.php?page=mbm_credibility3.2428.81

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
mbm_credibility_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Credibility
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6613.25 ▼1.141.63 ▼0.1036.89 ▼6.17
Dashboard /wp-admin2,213 ▲254.86 ▼1.01112.82 ▲0.1044.07 ▼1.35
Posts /wp-admin/edit.php2,099 ▲102.00 ▼0.0234.29 ▼3.1632.87 ▼3.94
Add New Post /wp-admin/post-new.php1,547 ▲2823.11 ▼0.01647.04 ▼1.4648.82 ▼3.14
Media Library /wp-admin/upload.php1,401 ▲104.19 ▲0.0296.93 ▼1.5240.68 ▼2.39
Credibility /wp-admin/options-general.php?page=mbm_credibility8842.0324.1729.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • mbm_credibility_options
    • theysaidso_admin_options

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/credibility/credibility.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
3 plugin tags: credibility, footnotes, attribution

credibility/credibility.php Passed 13 tests

The entry point to "Credibility" version 1.22 is a PHP file that has certain tags in its header comment area
110 characters long description:
Allows you to easily add footnotes anywhere in your theme by using the credibility_footnotes_display function.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin249 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15923203
CSS14023
JavaScript15723

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.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

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
tinymce_button.png3.00KB1.67KB▼ 44.39%