84% simons-framekiller

Code Review | Simons FrameKiller

WordPress plugin Simons FrameKiller scored84%from 54 tests.

About plugin

  • Plugin page: simons-framekiller
  • Plugin version: 0.1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.6.1
  • WordPress version: 6.3.1
  • First release: Aug 17, 2021
  • Latest release: Aug 17, 2021
  • Number of updates: 3
  • Update frequency: every 64.7 days
  • Top authors: scherieble (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /321 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Simons FrameKiller
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.53 ▲0.79
Dashboard /wp-admin3.31 ▼0.0449.41 ▼17.81
Posts /wp-admin/edit.php3.36 ▲0.0042.12 ▼3.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.61 ▲0.20
Media Library /wp-admin/upload.php3.23 ▲0.0036.17 ▼0.31

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Simons FrameKiller
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▲0.131.80 ▲0.1343.25 ▼7.24
Dashboard /wp-admin2,198 ▲245.57 ▼0.1086.45 ▼14.2138.74 ▼3.38
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0034.01 ▼0.9536.72 ▼3.17
Add New Post /wp-admin/post-new.php1,526 ▼023.12 ▲0.20688.65 ▲27.3456.91 ▲6.64
Media Library /wp-admin/upload.php1,394 ▼64.23 ▲0.0398.11 ▼12.9748.86 ▲2.00

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
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 add_action() in wp-content/plugins/simons-framekiller/simons-framekiller.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: iframe, frame, security

simons-framekiller/simons-framekiller.php 85% from 13 tests

The principal PHP file in "Simons FrameKiller" v. 0.1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("7.0.0" instead of "7.2")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.5.0" instead of "5.2")

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
No dangerous file extensions were detected6 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17316

PHP code Passed 2 tests

This is a short overview 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.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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin