84% frame-buster

Code Review | Frame Buster

WordPress plugin Frame Buster scored84%from 54 tests.

About plugin

  • Plugin page: frame-buster
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.2
  • WordPress version: 6.3.1
  • First release: May 26, 2016
  • Latest release: Jun 20, 2016
  • Number of updates: 14
  • Update frequency: every 20.5 days
  • Top authors: WarfarePlugins (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /4,341 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
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼9.83ms] Passed 4 tests

This is a short check of server-side resources used by Frame Buster
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0032.69 ▼7.69
Dashboard /wp-admin3.31 ▼0.0446.35 ▼15.74
Posts /wp-admin/edit.php3.36 ▲0.0044.40 ▲2.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.34 ▼14.88
Media Library /wp-admin/upload.php3.23 ▲0.0033.44 ▼1.02

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Frame Buster
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5614.48 ▼0.201.69 ▼0.1439.92 ▼3.79
Dashboard /wp-admin2,209 ▲214.87 ▼0.0296.02 ▼24.6339.91 ▼10.42
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0534.37 ▲0.6535.63 ▲1.01
Add New Post /wp-admin/post-new.php1,514 ▼517.43 ▼5.72605.71 ▼18.5554.01 ▼0.66
Media Library /wp-admin/upload.php1,388 ▲34.18 ▼0.0792.17 ▼8.7141.10 ▼2.40

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/frame-buster/frame-buster.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% 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 your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === frame-buster === )
You can take inspiration from this readme.txt

frame-buster/frame-buster.php Passed 13 tests

The main PHP script in "Frame Buster" version 1.1.2 is automatically included on every request by WordPress
69 characters long description:
Stop those content pirates from hijacking your site once and for all!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected5 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1285

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! 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

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