89% eps-cart-toggle-attributes

Code Review | EPS Cart Toggle Attributes

WordPress plugin EPS Cart Toggle Attributes scored89%from 54 tests.

About plugin

  • Plugin page: eps-cart-toggle-a...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.1
  • WordPress version: 6.3.1
  • First release: May 3, 2015
  • Latest release: May 15, 2015
  • Number of updates: 7
  • Update frequency: every 1.7 days
  • Top authors: shawn@eggplantstudios.ca (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /973 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.21ms] Passed 4 tests

Server-side resources used by EPS Cart Toggle Attributes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.97 ▼0.50
Dashboard /wp-admin3.32 ▲0.0146.54 ▼7.00
Posts /wp-admin/edit.php3.37 ▲0.0149.05 ▼4.38
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.58 ▼11.37
Media Library /wp-admin/upload.php3.24 ▲0.0035.11 ▼2.07

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for EPS Cart Toggle Attributes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.44 ▲0.141.84 ▲0.1341.61 ▼0.05
Dashboard /wp-admin2,198 ▲215.60 ▼0.0188.65 ▼2.7839.16 ▼7.51
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0339.91 ▼1.6539.45 ▲2.14
Add New Post /wp-admin/post-new.php1,550 ▲2423.19 ▲5.62625.69 ▼41.5448.37 ▼13.14
Media Library /wp-admin/upload.php1,403 ▲34.31 ▲0.0498.49 ▼8.3942.62 ▼2.99

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 detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 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 Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === eps-cart-toggle-attributes === )
  • Donate link: Invalid URI ("none")
You can look at the official readme.txt

eps-cart-toggle-attributes/eps-cart-toggle-attributes.php Passed 13 tests

Analyzing the main PHP file in "EPS Cart Toggle Attributes" version 1.0.1
70 characters long description:
Creates a toggle to hide/show attributes on the WooCommerce cart page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin56 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS13026
JavaScript12016
PHP162314

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected