74% counterespionage-firewall

Code Review | Counterespionage Firewall

WordPress plugin Counterespionage Firewall scored 74% from 54 tests.

About plugin

  • Plugin page: counterespionage-...
  • Plugin version: 1.6.0
  • PHP compatiblity: 7.0.33+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.2-6.0.1
  • WordPress version: 6.3.1
  • First release: Feb 15, 2020
  • Latest release: Jul 19, 2022
  • Number of updates: 26
  • Update frequency: every 34.1 days
  • Top authors: floodspark (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 804 total downloads


Plugin footprint 65% 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.61MB] [CPU: ▼19.67ms] Passed 4 tests

This is a short check of server-side resources used by Counterespionage Firewall
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0837.16 ▼10.40
Dashboard /wp-admin3.37 ▲0.0743.07 ▼6.35
Posts /wp-admin/edit.php3.49 ▲0.1349.84 ▼0.01
Add New Post /wp-admin/post-new.php3.25 ▼2.6435.21 ▼61.91
Media Library /wp-admin/upload.php3.30 ▲0.0738.56 ▲8.76

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 8 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Counterespionage Firewall
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.23 ▼1.364.05 ▲2.1738.44 ▼7.02
Dashboard /wp-admin2,211 ▲264.89 ▼1.00114.91 ▼0.9144.75 ▼4.09
Posts /wp-admin/edit.php2,094 ▲52.00 ▼0.0135.29 ▼0.6530.60 ▼6.39
Add New Post /wp-admin/post-new.php1,533 ▼023.24 ▼0.01711.90 ▲75.6354.94 ▲0.31
Media Library /wp-admin/upload.php1,393 ▲54.32 ▲0.1099.35 ▲0.4742.98 ▼1.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin cannot be uninstalled
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'uninstall' not found or invalid function name
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/counterespionage-firewall/counterespionage-firewall.php:407

User-side errors Passed 1 test

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


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 need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can take inspiration from this readme.txt

counterespionage-firewall/counterespionage-firewall.php 92% from 13 tests

The main PHP file in "Counterespionage Firewall" ver. 1.6.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:
  • Description: Please don't use more than 140 characters for the plugin description (currently 276 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin455 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions28100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.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
There are no PNG files in this plugin