90% itg-amazon-feed

Code Review | IT Guild Amazon Feed

WordPress plugin IT Guild Amazon Feed scored90%from 54 tests.

About plugin

  • Plugin page: itg-amazon-feed
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.1
  • WordPress version: 6.3.1
  • First release: Feb 25, 2019
  • Latest release: Feb 25, 2019
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: itguild (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /480 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.11MB] [CPU: ▼4.08ms] Passed 4 tests

A check of server-side resources used by IT Guild Amazon Feed
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1243.33 ▲0.44
Dashboard /wp-admin3.41 ▲0.1145.73 ▼5.99
Posts /wp-admin/edit.php3.47 ▲0.1144.55 ▼4.22
Add New Post /wp-admin/post-new.php5.99 ▲0.1188.16 ▼6.53
Media Library /wp-admin/upload.php3.34 ▲0.1140.32 ▲5.47
Feed categories /wp-admin/edit-tags.php?taxonomy=feed_category&post_type=amznfeed3.4536.14
Add New /wp-admin/post-new.php?post_type=amznfeed3.4656.49
Amazon Feed Products /wp-admin/edit.php?post_type=amznfeed3.3834.53

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for IT Guild Amazon Feed
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲7713.25 ▼1.111.85 ▼0.2842.23 ▼2.80
Dashboard /wp-admin2,231 ▲435.80 ▲0.91109.30 ▼7.9237.66 ▼6.01
Posts /wp-admin/edit.php2,120 ▲311.98 ▼0.0336.70 ▲0.6833.82 ▲0.01
Add New Post /wp-admin/post-new.php1,568 ▲3118.26 ▼5.08652.83 ▲1.6674.06 ▲23.73
Media Library /wp-admin/upload.php1,419 ▲374.22 ▲0.0695.99 ▼7.8540.04 ▼6.46
Feed categories /wp-admin/edit-tags.php?taxonomy=feed_category&post_type=amznfeed1,2682.1427.5425.67
Add New /wp-admin/post-new.php?post_type=amznfeed2,4787.88171.9068.60
Amazon Feed Products /wp-admin/edit.php?post_type=amznfeed1,0921.9433.0130.00

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: amazon, producs feed, feed

itg-amazon-feed/itg-amazon-feed.php Passed 13 tests

The main file in "IT Guild Amazon Feed" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
36 characters long description:
Create your own custom amazon feeds.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected470 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP37759470

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected