83% responsive-attention-box

Code Review | Responsive Attention Box

WordPress plugin Responsive Attention Box scored83%from 54 tests.

About plugin

  • Plugin page: responsive-attent...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0+
  • WordPress version: 6.3.1
  • First release: May 22, 2013
  • Latest release: May 22, 2013
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: ThesisPremium (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,666 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼7.20ms] Passed 4 tests

Analyzing server-side resources used by Responsive Attention Box
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.01 ▼1.87
Dashboard /wp-admin3.31 ▼0.0346.52 ▼15.70
Posts /wp-admin/edit.php3.36 ▲0.0146.88 ▲0.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.50 ▼7.78
Media Library /wp-admin/upload.php3.23 ▲0.0133.35 ▼3.45

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Just a few items left to fix
  • The plugin illegally modified 3 files (0.00KB) outside of "wp-content/plugins/responsive-attention-box/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/responsive-attention-box/assets/banner-772\303\227250.png"
    • (new file) "wp-content/plugins/responsive-attention-box/banner-772\303\227250.png"
    • (new file) "wp-content/plugins/responsive-attention-box/images/banner-772\303\227250.png"
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Responsive Attention Box: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲13713.71 ▼0.545.41 ▲3.5543.63 ▼1.56
Dashboard /wp-admin2,203 ▲155.78 ▼0.0897.52 ▼12.9840.64 ▼6.46
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0339.78 ▲0.5335.87 ▲0.89
Add New Post /wp-admin/post-new.php1,533 ▲523.38 ▲5.34659.81 ▲13.4551.43 ▼3.78
Media Library /wp-admin/upload.php1,388 ▼34.19 ▼0.0194.90 ▼7.2741.48 ▼3.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

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
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× 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/responsive-attention-box/alert-box.php:28

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Contributors: Plugin contributors field is missing
  • Contributors: No tags were detected
Please take inspiration from this readme.txt

responsive-attention-box/alert-box.php 85% from 13 tests

The primary PHP file in "Responsive Attention Box" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 235 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("responsive-attention-box.php" instead of "alert-box.php")

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 plugin314 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS1275282
PHP1302322
JavaScript13010

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
6 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/img/icons/gclose.png1.68KB0.75KB▼ 55.03%
images/banner-772×250.png22.26KB8.94KB▼ 59.84%
css/img/icons/bclose.png1.66KB0.75KB▼ 54.81%
banner-772×250.png22.26KB8.94KB▼ 59.84%
assets/banner-772×250.png22.26KB8.94KB▼ 59.84%