84% ec-links

Code Review | EC Links

WordPress plugin EC Links scored84%from 54 tests.

About plugin

  • Plugin page: ec-links
  • Plugin version: 0.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.1
  • WordPress version: 6.3.1
  • First release: Jan 4, 2023
  • Latest release: Jan 5, 2023
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: monolithon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

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

Server-side resources used by EC Links
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.77 ▼5.04
Dashboard /wp-admin3.32 ▲0.0143.55 ▼3.80
Posts /wp-admin/edit.php3.37 ▲0.0145.89 ▲1.00
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.81 ▼16.95
Media Library /wp-admin/upload.php3.24 ▲0.0132.63 ▲1.71

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

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

Browser metrics Passed 4 tests

EC Links: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲614.34 ▼0.021.55 ▼0.2238.30 ▲0.69
Dashboard /wp-admin2,192 ▲115.53 ▼0.1884.61 ▼14.7936.89 ▼7.60
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0439.19 ▲2.6339.99 ▲2.16
Add New Post /wp-admin/post-new.php6,198 ▲4,67018.93 ▼4.14934.79 ▲276.0057.14 ▲2.14
Media Library /wp-admin/upload.php1,397 ▼34.16 ▲0.01110.36 ▲8.6146.82 ▲4.34

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

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

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ec-links/ec-links.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 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
7 plugin tags: media, affiliate, rakuten, amazon, yahoo...

ec-links/ec-links.php 92% from 13 tests

This is the main PHP file of "EC Links" version 0.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 309 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin28,126 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JSON40027,687
JavaScript102382315
Sass2210116
PHP21186
CSS2002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
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%
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected