78% aliffiliate-shortcodes

Code Review | Aliffiliate Shortcodes

WordPress plugin Aliffiliate Shortcodes scored78%from 54 tests.

About plugin

  • Plugin page: aliffiliate-short...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.0.1
  • WordPress version: 6.3.1
  • First release: Dec 11, 2014
  • Latest release: Dec 11, 2014
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: aliffiliate (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,721 total downloads


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.03MB] [CPU: ▼3.94ms] Passed 4 tests

An overview of server-side resources used by Aliffiliate Shortcodes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.68 ▲2.51
Dashboard /wp-admin3.34 ▼0.0046.91 ▼11.34
Posts /wp-admin/edit.php3.39 ▲0.0447.02 ▼1.52
Add New Post /wp-admin/post-new.php5.92 ▲0.0496.13 ▼2.39
Media Library /wp-admin/upload.php3.27 ▲0.0433.54 ▼0.51
Settings /wp-admin/admin.php?page=aliffiliate-shortcodes-settings3.2331.15
Create shortodes /wp-admin/admin.php?page=aliffiliate-shortcodes-create3.2431.85
Premium Plugin /wp-admin/admin.php?page=aliffiliate-shortcodes-premium3.2431.60

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Aliffiliate Shortcodes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲11013.19 ▼1.391.77 ▼0.0141.89 ▲2.89
Dashboard /wp-admin2,237 ▲465.83 ▼0.0196.87 ▼9.7141.08 ▼2.39
Posts /wp-admin/edit.php2,123 ▲311.99 ▼0.0438.71 ▼2.5436.51 ▼2.54
Add New Post /wp-admin/post-new.php1,567 ▲3818.27 ▼0.06626.21 ▲10.6251.97 ▼1.22
Media Library /wp-admin/upload.php1,422 ▲344.25 ▲0.0397.63 ▼4.7141.15 ▼2.24
Settings /wp-admin/admin.php?page=aliffiliate-shortcodes-settings8721.7426.3545.41
Create shortodes /wp-admin/admin.php?page=aliffiliate-shortcodes-create1,0551.9030.3029.14
Premium Plugin /wp-admin/admin.php?page=aliffiliate-shortcodes-premium1,5099.57284.0388.37

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% 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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/aliffiliate-shortcodes/views/bottom.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/aliffiliate-shortcodes/views/top.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid URI ("")
  • Tags: No valid plugin tags found
You can take inspiration from this readme.txt

aliffiliate-shortcodes/aliffiliate-shortcodes.php 92% from 13 tests

The primary PHP file in "Aliffiliate Shortcodes" version 0.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Please use more than 10 characters for the plugin description (currently 0 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
Everything looks great! No dangerous files found in this plugin727 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods12100.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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
18 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-icons_222222_256x240.png6.76KB4.17KB▼ 38.24%
css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png0.32KB0.18KB▼ 42.38%
css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png0.27KB0.14KB▼ 47.84%
images/728.png51.76KB20.09KB▼ 61.19%