84% no-cc-attack

Code Review | No CC Attack

WordPress plugin No CC Attack scored84%from 54 tests.

About plugin

  • Plugin page: no-cc-attack
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8.1
  • WordPress version: 6.3.1
  • First release: Apr 8, 2014
  • Latest release: Apr 8, 2014
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: eflyjason (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /953 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.13MB] [CPU: ▼10.09ms] Passed 4 tests

An overview of server-side resources used by No CC Attack
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▼0.6118.82 ▼26.20
Dashboard /wp-admin3.33 ▲0.0347.51 ▼6.48
Posts /wp-admin/edit.php3.39 ▲0.0348.65 ▼8.20
Add New Post /wp-admin/post-new.php5.91 ▲0.0296.30 ▲0.53
Media Library /wp-admin/upload.php3.26 ▲0.0237.34 ▲4.31
No CC Attack /wp-admin/options-general.php?page=no-cc-attack-options3.2231.44

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 9 new options
New WordPress options
no_cc_attack_redirect_url
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
no_cc_attack_time
db_upgraded
no_cc_attack_second
widget_recent-posts

Browser metrics Passed 4 tests

No CC Attack: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3314.48 ▲0.101.84 ▼0.2142.76 ▼3.00
Dashboard /wp-admin2,210 ▲195.91 ▲0.78114.35 ▲12.2051.65 ▲10.02
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0340.42 ▼2.4834.85 ▼2.59
Add New Post /wp-admin/post-new.php1,536 ▲1923.06 ▲5.36651.71 ▼15.3251.43 ▼2.77
Media Library /wp-admin/upload.php1,395 ▲104.25 ▲0.0595.75 ▼5.8546.21 ▼2.71
No CC Attack /wp-admin/options-general.php?page=no-cc-attack-options8042.0525.3632.84

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • no_cc_attack_second
    • widget_recent-posts
    • db_upgraded
    • no_cc_attack_redirect_url
    • no_cc_attack_time
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/no-cc-attack/no-cc-attack.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/no-cc-attack/options.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

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
2 plugin tags: anti-attack, no-cc

no-cc-attack/no-cc-attack.php 92% from 13 tests

The main PHP file in "No CC Attack" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 154 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin150 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2172588
PO File2141462

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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