84% epic-bootstrap-buttons

Code Review | Epic Bootstrap Buttons

WordPress plugin Epic Bootstrap Buttons scored84%from 54 tests.

About plugin

  • Plugin page: epic-bootstrap-bu...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9
  • WordPress version: 6.3.1
  • First release: Jan 21, 2014
  • Latest release: Apr 21, 2014
  • Number of updates: 10
  • Update frequency: every 9.0 days
  • Top authors: mikemayhem3030 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

50+ active /3,539 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.05MB] [CPU: ▼3.10ms] Passed 4 tests

An overview of server-side resources used by Epic Bootstrap Buttons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0539.82 ▼3.82
Dashboard /wp-admin3.40 ▲0.0548.24 ▼5.14
Posts /wp-admin/edit.php3.51 ▲0.1147.61 ▼6.61
Add New Post /wp-admin/post-new.php5.98 ▲0.0598.27 ▲3.19
Media Library /wp-admin/upload.php3.32 ▲0.0540.41 ▲7.72

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Epic Bootstrap Buttons
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,915 ▲15413.84 ▼0.808.89 ▲7.0242.01 ▼0.81
Dashboard /wp-admin2,216 ▲365.58 ▲0.0385.10 ▼16.8639.85 ▼9.30
Posts /wp-admin/edit.php2,117 ▲172.07 ▲0.1036.01 ▲0.8333.67 ▼1.59
Add New Post /wp-admin/post-new.php1,543 ▲1723.49 ▼0.11625.03 ▼74.1354.92 ▲1.14
Media Library /wp-admin/upload.php1,423 ▲234.17 ▼0.0298.65 ▼13.3743.92 ▼3.26

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/epic-bootstrap-buttons/epicboot.php:18

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: There are too many tags (56 tag instead of maximum 10)
You can look at the official readme.txt

epic-bootstrap-buttons/epicboot.php 92% from 13 tests

The main file in "Epic Bootstrap Buttons" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("epic-bootstrap-buttons.php" instead of "epicboot.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,872 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS124671,089
PHP15218435
JavaScript25112348

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 compressed PNG files occupy 0.02MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/glyphicons-halflings-white.png8.57KB9.20KB0.00%
img/glyphicons-halflings.png12.50KB10.35KB▼ 17.19%