84% spamdyke-analyzer

Code Review | Spamdyke Analyzer

WordPress plugin Spamdyke Analyzer scored84%from 54 tests.

About plugin

  • Plugin page: spamdyke-analyzer
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.5.2
  • WordPress version: 6.3.1
  • First release: Jun 23, 2013
  • Latest release: Jul 7, 2013
  • Number of updates: 56
  • Update frequency: every 0.3 days
  • Top authors: alessandroconsorti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /739 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Spamdyke Analyzer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0247.62 ▲5.96
Dashboard /wp-admin3.33 ▲0.0247.82 ▼4.35
Posts /wp-admin/edit.php3.38 ▲0.0251.79 ▼0.26
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.80 ▼12.00
Media Library /wp-admin/upload.php3.26 ▲0.0236.34 ▼2.68

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Spamdyke Analyzer: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.25 ▼0.101.73 ▲0.1740.45 ▼0.98
Dashboard /wp-admin2,195 ▲215.54 ▼0.0785.39 ▼9.0540.81 ▼2.22
Posts /wp-admin/edit.php2,097 ▼91.94 ▼0.0636.11 ▼1.7038.03 ▲3.47
Add New Post /wp-admin/post-new.php1,526 ▼023.03 ▼0.01659.81 ▼2.2858.16 ▲10.00
Media Library /wp-admin/upload.php1,400 ▼04.17 ▼0.0597.13 ▼2.3644.76 ▼1.13

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

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)
Good news, no errors were detected

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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spamdyke-analyzer/ietl-spamdyke.php:15

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: qmail, blacklist, antispam, spamdyke

spamdyke-analyzer/ietl-spamdyke.php 92% from 13 tests

The main PHP script in "Spamdyke Analyzer" version 1.1.2 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("spamdyke-analyzer.php" instead of "ietl-spamdyke.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin219 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11411117
PO File1282893
CSS1009

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png65.61KB31.18KB▼ 52.48%