90% wp-block-analytics-spam

Code Review | WordPress Block Analytics Spam

WordPress plugin WordPress Block Analytics Spam scored90%from 54 tests.

About plugin

  • Plugin page: wp-block-analytic...
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.1
  • WordPress version: 6.3.1
  • First release: Nov 24, 2015
  • Latest release: Jan 25, 2017
  • Number of updates: 20
  • Update frequency: every 21.4 days
  • Top authors: miguelmuller (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active /3,907 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.26ms] Passed 4 tests

Server-side resources used by WordPress Block Analytics Spam
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.00 ▲0.20
Dashboard /wp-admin3.33 ▲0.0346.26 ▼4.49
Posts /wp-admin/edit.php3.38 ▲0.0345.98 ▲2.25
Add New Post /wp-admin/post-new.php5.91 ▲0.0381.80 ▼7.55
Media Library /wp-admin/upload.php3.25 ▲0.0335.81 ▼1.18
Block analytics Spam /wp-admin/tools.php?page=page-wp-block-analytics-spam3.2530.24

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 8 new options
New WordPress options
wp_block_analytics_spam_settings
widget_theysaidso_widget
db_upgraded
can_compress_scripts
wp_block_analytics_spam_remote_domains
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

WordPress Block Analytics Spam: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.39 ▼1.361.72 ▲0.0438.26 ▼8.31
Dashboard /wp-admin2,210 ▲225.88 ▲1.02103.00 ▼12.2639.17 ▼4.62
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0135.69 ▼1.1232.35 ▼4.70
Add New Post /wp-admin/post-new.php1,536 ▲1723.44 ▲0.43678.80 ▲3.3561.03 ▲8.43
Media Library /wp-admin/upload.php1,395 ▲104.21 ▼0.01110.06 ▲5.4645.96 ▼1.40
Block analytics Spam /wp-admin/tools.php?page=page-wp-block-analytics-spam8062.0326.6231.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: There are too many tags (16 tag instead of maximum 10)
The official readme.txt might help

wp-block-analytics-spam/wp-block-analytics-spam.php Passed 13 tests

Analyzing the main PHP file in "WordPress Block Analytics Spam" version 1.5
114 characters long description:
Stop the Spam bot as semalt.com and buttons-for-website.com that appear on Google Analytics and have real reports.

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
There were no executable files found in this plugin366 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP784135300
PO File1202566

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity6.80
▷ Minimum class complexity2.00
▷ Maximum class complexity12.00
Average method complexity2.16
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods25
▷ Static methods312.00%
▷ Public methods2288.00%
▷ Protected methods00.00%
▷ Private methods312.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin