84% simple-emzon-links

Code Review | Simple Emzon Links

WordPress plugin Simple Emzon Links scored 84% from 54 tests.

About plugin

  • Plugin page: simple-emzon-links
  • Plugin version: 0.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.6
  • WordPress version: 6.3.1
  • First release: Mar 12, 2020
  • Latest release: Jan 31, 2021
  • Number of updates: 3
  • Update frequency: every 108.3 days
  • Top authors: wddportfolio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 524 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.91ms] Passed 4 tests

This is a short check of server-side resources used by Simple Emzon Links
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.67 ▲2.13
Dashboard /wp-admin3.33 ▲0.0242.18 ▼6.70
Posts /wp-admin/edit.php3.38 ▲0.0247.86 ▲4.17
Add New Post /wp-admin/post-new.php5.90 ▲0.0279.72 ▼13.92
Media Library /wp-admin/upload.php3.25 ▲0.0231.62 ▼5.13
About /wp-admin/admin.php?page=salfwp-about3.2228.71
Configuration /wp-admin/admin.php?page=simple-emzon-links3.2229.74

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Emzon Links
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲9513.16 ▼1.401.60 ▼0.2138.54 ▼7.28
Dashboard /wp-admin2,234 ▲495.83 ▲0.99112.21 ▲7.7686.49 ▲44.72
Posts /wp-admin/edit.php2,120 ▲281.98 ▼0.0635.30 ▼1.7633.55 ▲0.66
Add New Post /wp-admin/post-new.php6,455 ▲4,93620.70 ▼2.56930.48 ▲272.7738.45 ▼6.29
Media Library /wp-admin/upload.php1,416 ▲284.15 ▼0.05107.40 ▼3.5044.39 ▼4.34
About /wp-admin/admin.php?page=salfwp-about8502.0126.7445.24
Configuration /wp-admin/admin.php?page=simple-emzon-links9042.1722.5429.31

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/simple-emzon-links/simple-emzon-links.php:62

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: amazon associates, amazon affiliate, amazon, amazon product advertising api

simple-emzon-links/simple-emzon-links.php 92% from 13 tests

The primary PHP file in "Simple Emzon Links" version 0.2.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected995 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP7248236701
PO File13637117
CSS313078
JavaScript18676
JSON10023

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity13.00
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods51
▷ Static methods1733.33%
▷ Public methods3058.82%
▷ Protected methods35.88%
▷ Private methods1835.29%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants8
▷ Global constants8100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/salfwp-icon.png1.12KB1.15KB0.00%
assets/images/salfwp-iconx.png1.12KB1.15KB0.00%