10% etc-mods-bundle

Code Review | ETC Mods Bundle

WordPress plugin ETC Mods Bundle scored10%from 54 tests.

About plugin

  • Plugin page: etc-mods-bundle
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 8, 2018
  • Latest release: Aug 11, 2020
  • Number of updates: 11
  • Update frequency: every 83.2 days
  • Top authors: selliott (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /724 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/etc-mods-bundle/etc-mods-bundle.php+68
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.05MB] [CPU: ▲0.71ms] Passed 4 tests

This is a short check of server-side resources used by ETC Mods Bundle
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0542.69 ▲2.65
Dashboard /wp-admin3.36 ▲0.0552.33 ▲0.75
Posts /wp-admin/edit.php3.41 ▲0.0552.78 ▲2.51
Add New Post /wp-admin/post-new.php5.94 ▲0.0490.50 ▼2.66
Media Library /wp-admin/upload.php3.28 ▲0.0540.26 ▲2.23
ETC Mods /wp-admin/options-general.php?page=ETC-Mods-Bundle3.3140.72

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for ETC Mods Bundle
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲8414.20 ▲0.032.16 ▲0.4646.87 ▲5.43
Dashboard /wp-admin2,234 ▲605.63 ▲0.0595.71 ▲1.0742.11 ▲0.92
Posts /wp-admin/edit.php2,104 ▲12.03 ▼0.0133.69 ▼1.8034.90 ▼6.86
Add New Post /wp-admin/post-new.php1,531 ▲323.26 ▲0.12636.98 ▼56.0361.61 ▲6.12
Media Library /wp-admin/upload.php1,407 ▲104.22 ▲0.0494.34 ▼7.8743.60 ▲2.99
ETC Mods /wp-admin/options-general.php?page=ETC-Mods-Bundle1,6416.88139.52101.53

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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 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/etc-mods-bundle/etc-mods-bundle.php:46

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
The official readme.txt is a good inspiration

etc-mods-bundle/etc-mods-bundle.php 92% from 13 tests

"ETC Mods Bundle" version 1.0.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 157 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
No dangerous file extensions were detected278 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14362257
CSS15121

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions12
▷ Named functions12100.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
There are no PNG files in this plugin