84% silver-bullet

Code Review | Silver Bullet

WordPress plugin Silver Bullet scored84%from 54 tests.

About plugin

  • Plugin page: silver-bullet
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 6.3.1
  • First release: Nov 29, 2016
  • Latest release: Sep 5, 2020
  • Number of updates: 4
  • Update frequency: every 344.2 days
  • Top authors: webvitaly (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /727 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.81ms] Passed 4 tests

An overview of server-side resources used by Silver Bullet
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.50 ▲0.31
Dashboard /wp-admin3.39 ▲0.0952.10 ▼4.70
Posts /wp-admin/edit.php3.50 ▲0.1551.54 ▼1.80
Add New Post /wp-admin/post-new.php5.97 ▲0.0887.27 ▼5.04
Media Library /wp-admin/upload.php3.31 ▲0.0837.02 ▲1.58
Speedup /wp-admin/admin.php?page=silver-bullet-speedup3.2834.26
Silver Bullet /wp-admin/admin.php?page=silver-bullet3.2834.55

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Silver Bullet
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲11614.28 ▲0.072.02 ▲0.3440.78 ▼3.70
Dashboard /wp-admin2,231 ▲545.63 ▲0.0587.18 ▼5.6541.87 ▼0.63
Posts /wp-admin/edit.php2,139 ▲361.99 ▲0.0036.26 ▼5.4236.46 ▲1.06
Add New Post /wp-admin/post-new.php1,555 ▲2723.17 ▲0.07645.77 ▼39.7950.33 ▼4.27
Media Library /wp-admin/upload.php1,442 ▲424.19 ▼0.0996.89 ▼21.6046.24 ▼4.08
Speedup /wp-admin/admin.php?page=silver-bullet-speedup8922.0024.1627.85
Silver Bullet /wp-admin/admin.php?page=silver-bullet9051.9921.8227.56

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/silver-bullet/inc/sbpro-settings-speedup.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

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
8 plugin tags: performance, query, speedup, sql, time...

silver-bullet/silver-bullet.php Passed 13 tests

The principal PHP file in "Silver Bullet" v. 1.0 is loaded by WordPress automatically on each request
41 characters long description:
Speedup WordPress website in a smart way.

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
Everything looks great! No dangerous files found in this plugin406 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP511959406

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods5100.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin