84% anxious-client-shield

Code Review | Anxious Client Shield

WordPress plugin Anxious Client Shield scored84%from 54 tests.

About plugin

  • Plugin page: anxious-client-sh...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.8.2
  • WordPress version: 6.3.1
  • First release: Oct 30, 2017
  • Latest release: Oct 30, 2017
  • Number of updates: 11
  • Update frequency: every 0.1 days
  • Top authors: delreyagency (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /818 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 gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.73ms] Passed 4 tests

A check of server-side resources used by Anxious Client Shield
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.75 ▲0.38
Dashboard /wp-admin3.35 ▲0.0449.43 ▼2.88
Posts /wp-admin/edit.php3.40 ▲0.0450.21 ▼10.54
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.03 ▼17.88
Media Library /wp-admin/upload.php3.27 ▲0.0441.68 ▲3.08

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Anxious Client Shield: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.35 ▼0.111.73 ▲0.0043.27 ▲0.51
Dashboard /wp-admin2,211 ▲345.55 ▼0.1291.68 ▼6.0441.32 ▼2.72
Posts /wp-admin/edit.php2,116 ▲161.97 ▼0.0539.68 ▲2.1338.85 ▲3.53
Add New Post /wp-admin/post-new.php1,539 ▲1121.02 ▼2.06640.04 ▼59.3249.41 ▼9.16
Media Library /wp-admin/upload.php1,419 ▲194.21 ▲0.03105.18 ▼2.2546.92 ▲0.86

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/anxious-client-shield/anxious-client-shield.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: stress, work in peace, save stress, save your stress, dealing with clients...

anxious-client-shield/anxious-client-shield.php Passed 13 tests

The main file in "Anxious Client Shield" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
37 characters long description:
Show random messages to your clients.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin454 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP53032454

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/img3.png16.17KB6.23KB▼ 61.47%