83% ayeshortcodes

Code Review | AyeShortcodes

WordPress plugin AyeShortcodes scored83%from 54 tests.

About plugin

  • Plugin page: ayeshortcodes
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6
  • WordPress version: 6.3.1
  • First release: Nov 1, 2016
  • Latest release: Oct 28, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: psdtohtmlguru (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /787 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼1.88ms] Passed 4 tests

This is a short check of server-side resources used by AyeShortcodes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1745.91 ▲1.55
Dashboard /wp-admin3.46 ▲0.1654.49 ▼2.25
Posts /wp-admin/edit.php3.58 ▲0.2252.95 ▲1.00
Add New Post /wp-admin/post-new.php6.04 ▲0.1698.17 ▼7.80
Media Library /wp-admin/upload.php3.38 ▲0.1641.73 ▲5.61

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

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

Browser metrics Passed 4 tests

AyeShortcodes: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲11113.44 ▼0.7410.42 ▲8.5643.77 ▲1.64
Dashboard /wp-admin2,198 ▲185.55 ▼0.1290.87 ▲1.4843.75 ▼0.48
Posts /wp-admin/edit.php2,103 ▲32.01 ▼0.0135.30 ▼2.3134.93 ▲0.13
Add New Post /wp-admin/post-new.php1,528 ▼623.06 ▼0.25639.16 ▼69.6150.27 ▼0.60
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.04104.93 ▼14.9846.16 ▼0.75

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ayeshortcodes/index.php:27

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 38 tag instead of maximum 10
You can look at the official readme.txt

ayeshortcodes/index.php 77% from 13 tests

Analyzing the main PHP file in "AyeShortcodes" version 0.1
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 145 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("ayeshortcodes.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin7,998 lines of code in 52 files:
LanguageFilesBlank linesComment linesLines of code
CSS568142,548
Sass15109372,031
LESS1434441,646
SVG100685
PHP7156181517
JavaScript34213164
JSON500148
Markdown1250145
HTML1180114

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity30.25
▷ Minimum class complexity3.00
▷ Maximum class complexity100.00
Average method complexity3.85
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods41
▷ Static methods2151.22%
▷ Public methods41100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected