68% acychecker

Code Review | Anti Spam and list cleaner - AcyChecker

WordPress plugin Anti Spam and list cleaner - AcyChecker scored68%from 54 tests.

About plugin

  • Plugin page: acychecker
  • Plugin version: 1.2.9
  • PHP compatiblity: 7.2.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 12, 2021
  • Latest release: Jul 24, 2023
  • Number of updates: 32
  • Update frequency: every 19.6 days
  • Top authors: acyba (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /4,284 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.52MB] [CPU: ▲1.86ms] Passed 4 tests

A check of server-side resources used by Anti Spam and list cleaner - AcyChecker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.97 ▲0.5139.98 ▼0.47
Dashboard /wp-admin3.83 ▲0.5348.08 ▼7.44
Posts /wp-admin/edit.php3.88 ▲0.5255.22 ▲9.38
Add New Post /wp-admin/post-new.php6.40 ▲0.5298.55 ▲5.95
Media Library /wp-admin/upload.php3.75 ▲0.5242.70 ▲10.65
Configuration /wp-admin/admin.php?page=acychecker_configuration3.8738.77
Block on registration /wp-admin/admin.php?page=acychecker_registration3.8333.81
Tests /wp-admin/admin.php?page=acychecker_tests3.9638.90
Clean my database /wp-admin/admin.php?page=acychecker_database3.8437.34
Dashboard /wp-admin/admin.php?page=acychecker_dashboard3.8537.44

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 135 new files
Database: 4 new tables, 6 new options
New tables
wp_acyc_test
wp_acyc_delete_history
wp_acyc_configuration
wp_acyc_block_history
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Anti Spam and list cleaner - AcyChecker
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲14913.37 ▼1.004.70 ▲2.6940.02 ▼7.91
Dashboard /wp-admin2,290 ▲1024.85 ▼0.19108.66 ▼4.4244.13 ▼1.99
Posts /wp-admin/edit.php2,177 ▲882.07 ▲0.0539.75 ▲1.9133.64 ▲1.69
Add New Post /wp-admin/post-new.php1,547 ▲1423.34 ▲0.31631.76 ▼9.9857.00 ▲2.94
Media Library /wp-admin/upload.php1,472 ▲844.21 ▼0.0298.54 ▼0.6343.87 ▲0.66
Configuration /wp-admin/admin.php?page=acychecker_configuration1,4862.3243.1941.47
Block on registration /wp-admin/admin.php?page=acychecker_registration1,4132.5136.3429.20
Tests /wp-admin/admin.php?page=acychecker_tests1,7592.3851.1745.18
Clean my database /wp-admin/admin.php?page=acychecker_database1,6262.4542.4651.66
Dashboard /wp-admin/admin.php?page=acychecker_dashboard1,8695.46136.4290.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure failed, leaving 4 tables in the database
    • wp_acyc_delete_history
    • wp_acyc_configuration
    • wp_acyc_test
    • wp_acyc_block_history
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=acychecker_dashboard
    • > Warning in wp-content/plugins/acychecker/cms/cmsServices/Miscellaneous.php+52
    session_start(): Cannot start session when headers already sent

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 74× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'AcyChecker\\Libraries\\AcycObject' not found in wp-content/plugins/acychecker/src/Libraries/AcycView.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/acychecker/src/Views/Tests/listing_handle_modal.php:12
    • > PHP Warning
      Use of undefined constant DS - assumed 'DS' (this will throw an Error in a future version of PHP) in wp-content/plugins/acychecker/defines_cms.php on line 30
    • > PHP Warning
      Use of undefined constant DS - assumed 'DS' (this will throw an Error in a future version of PHP) in wp-content/plugins/acychecker/defines_cms.php on line 28
    • > PHP Fatal error
      Uncaught Error: Class 'AcyChecker\\Libraries\\AcycIntegrationClass' not found in wp-content/plugins/acychecker/src/Classes/CmsUserClass.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/acychecker/src/Views/Registration/default_conditions.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'AcyChecker\\Libraries\\AcycController' not found in wp-content/plugins/acychecker/src/Controllers/DashboardController.php:15
    • > PHP Warning
      Use of undefined constant DS - assumed 'DS' (this will throw an Error in a future version of PHP) in wp-content/plugins/acychecker/defines_cms.php on line 28
    • > PHP Fatal error
      Uncaught Error: Class 'AcyChecker\\Libraries\\AcycObject' not found in wp-content/plugins/acychecker/src/Services/DateService.php:10
    • > PHP Warning
      Use of undefined constant DS - assumed 'DS' (this will throw an Error in a future version of PHP) in wp-content/plugins/acychecker/defines_cms.php on line 30

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in acychecker/assets to your readme.txt
The official readme.txt might help

acychecker/acychecker.php Passed 13 tests

"Anti Spam and list cleaner - AcyChecker" version 1.2.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
75 characters long description:
Check the email addresses of your site and block them if they do not exists

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
No dangerous file extensions were detected19,543 lines of code in 125 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript223,2333,37112,159
PHP921,4963306,631
SVG3502704
SQL13842
CSS6006
JSON1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity14.42
▷ Minimum class complexity1.00
▷ Maximum class complexity74.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity56.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes62
▷ Abstract classes00.00%
▷ Concrete classes62100.00%
▷ Final classes00.00%
Methods354
▷ Static methods11833.33%
▷ Public methods28379.94%
▷ Protected methods133.67%
▷ Private methods5816.38%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants72
▷ Global constants3954.17%
▷ Class constants3345.83%
▷ Public constants33100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/icons/logo_acyc.png1.32KB1.30KB▼ 1.11%