84% purge-black-hat-seo

Code Review | Purge BlackHat SEO

WordPress plugin Purge BlackHat SEO scored84%from 54 tests.

About plugin

  • Plugin page: purge-black-hat-seo
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 7, 2016
  • Latest release: May 7, 2016
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: EazyServer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /989 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Analyzing server-side resources used by Purge BlackHat SEO
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.56 ▲0.87
Dashboard /wp-admin3.32 ▼0.0254.91 ▼3.62
Posts /wp-admin/edit.php3.37 ▲0.0244.63 ▼1.37
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.90 ▼18.63
Media Library /wp-admin/upload.php3.25 ▲0.0235.96 ▲2.03

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Purge BlackHat SEO
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲4514.70 ▲0.351.79 ▼0.1944.05 ▲2.29
Dashboard /wp-admin2,222 ▲374.87 ▼0.00112.06 ▲5.0141.60 ▼0.72
Posts /wp-admin/edit.php2,105 ▲162.00 ▼0.0133.45 ▼3.4636.36 ▲2.27
Add New Post /wp-admin/post-new.php1,555 ▲2718.14 ▼0.19671.08 ▲20.6854.00 ▼7.19
Media Library /wp-admin/upload.php1,404 ▲164.20 ▲0.0395.90 ▼2.0941.43 ▼1.60

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/purge-black-hat-seo/purge.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Control Panel), #2 (Control Panel in Action)
Please take inspiration from this readme.txt

purge-black-hat-seo/purge.php 92% from 13 tests

The main PHP file in "Purge BlackHat SEO" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("purge-black-hat-seo.php" instead of "purge.php")

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
Success! There were no dangerous files found in this plugin185 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1379185

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.20MB with 0.13MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png90.88KB32.64KB▼ 64.09%
screenshot-1.png94.58KB33.36KB▼ 64.73%
img/src2.png17.87KB6.63KB▼ 62.89%