84% thissitewaskidnapped

Code Review | Thissitewaskidnapped

WordPress plugin Thissitewaskidnapped scored84%from 54 tests.

About plugin

  • Plugin page: thissitewaskidnapped
  • Plugin version: 1...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.2
  • WordPress version: 6.3.1
  • First release: Jan 10, 2013
  • Latest release: Jan 10, 2013
  • Number of updates: 14
  • Update frequency: N/A
  • Top authors: viniciusgomes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,395 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: ▲10.48ms] Passed 4 tests

Analyzing server-side resources used by Thissitewaskidnapped
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0156.17 ▲7.22
Dashboard /wp-admin3.31 ▲0.0152.23 ▼2.75
Posts /wp-admin/edit.php3.36 ▲0.0172.78 ▲18.39
Add New Post /wp-admin/post-new.php5.91 ▲0.03122.24 ▲29.45
Media Library /wp-admin/upload.php3.24 ▲0.0156.65 ▲19.06

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Thissitewaskidnapped
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲14517.96 ▲3.6165.20 ▲63.1660.74 ▲18.04
Dashboard /wp-admin2,785 ▲61117.63 ▲12.03357.78 ▲256.8121.90 ▼20.91
Posts /wp-admin/edit.php2,729 ▲62914.56 ▲12.56294.65 ▲257.4618.77 ▼16.88
Add New Post /wp-admin/post-new.php6,990 ▲5,46431.01 ▲7.451,226.66 ▲511.3223.83 ▼29.80
Media Library /wp-admin/upload.php2,038 ▲64415.65 ▲11.47367.31 ▲257.7822.26 ▼22.47

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/thissitewaskidnapped/class.attack.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
There were no plugin tags found

thissitewaskidnapped/index.php 85% from 13 tests

Analyzing the main PHP file in "Thissitewaskidnapped" version 1...
It is important to fix the following:
  • Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "1...")
  • Main file name: The principal plugin file should be the same as the plugin slug ("thissitewaskidnapped.php" instead of "index.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
Everything looks great! No dangerous files found in this plugin38 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2101825
CSS1107
JavaScript1106

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods125.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin