10% responsible

Code Review | Responsible

WordPress plugin Responsible scored10%from 54 tests.

About plugin

  • Plugin page: responsible
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.2.2
  • WordPress version: 6.3.1
  • First release: Mar 26, 2014
  • Latest release: May 8, 2015
  • Number of updates: 10
  • Update frequency: every 40.8 days
  • Top authors: scottsweb (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

300+ active /10,887 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/responsible/responsible.php+45
    Methods with the same name as their class will not be constructors in a future version of PHP; responsible has a deprecated constructor

Server metrics [RAM: ▼1.93MB] [CPU: ▼60.78ms] Passed 4 tests

Server-side resources used by Responsible
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.405.39 ▼37.61
Dashboard /wp-admin2.08 ▼1.265.82 ▼56.67
Posts /wp-admin/edit.php2.09 ▼1.275.71 ▼53.54
Add New Post /wp-admin/post-new.php2.08 ▼3.805.07 ▼95.31
Media Library /wp-admin/upload.php2.09 ▼1.145.74 ▼28.47

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Responsible
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲5214.68 ▲0.312.05 ▼0.2244.96 ▲4.67
Dashboard /wp-admin2,207 ▲365.63 ▲0.0595.06 ▲0.4639.32 ▼3.70
Posts /wp-admin/edit.php2,115 ▲121.96 ▼0.0439.85 ▼0.4732.05 ▼4.54
Add New Post /wp-admin/post-new.php1,531 ▲523.39 ▲0.20690.42 ▲0.8661.86 ▲7.23
Media Library /wp-admin/upload.php1,412 ▲154.17 ▼0.0799.15 ▼1.3043.41 ▲1.01

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/responsible/responsible.php+45
    Methods with the same name as their class will not be constructors in a future version of PHP; responsible has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • 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 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsible/responsible.php:158

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can look at the official readme.txt

responsible/responsible.php Passed 13 tests

The main file in "Responsible" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
50 characters long description:
Viewport resizing comes to the WordPress admin bar

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
Everything looks great! No dangerous files found in this plugin149 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP2228948
Markdown119034
CSS15032
PO File10020
JSON10015

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin