84% amilia-store

Code Review | Amilia Store

WordPress plugin Amilia Store scored84%from 54 tests.

About plugin

  • Plugin page: amilia-store
  • Plugin version: 2.9.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.0
  • WordPress version: 6.3.1
  • First release: Dec 29, 2014
  • Latest release: Apr 23, 2019
  • Number of updates: 88
  • Update frequency: every 18.0 days
  • Top authors: martindrapeau (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /2,352 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 successfully, without throwing any errors or notices

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

Server-side resources used by Amilia Store
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.30 ▼2.47
Dashboard /wp-admin3.32 ▲0.0249.06 ▼6.25
Posts /wp-admin/edit.php3.37 ▲0.0248.51 ▲1.77
Add New Post /wp-admin/post-new.php5.93 ▲0.0595.19 ▲2.09
Media Library /wp-admin/upload.php3.24 ▲0.0238.07 ▲3.79

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Amilia Store
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲11713.52 ▼0.702.34 ▲0.3241.52 ▼2.94
Dashboard /wp-admin2,232 ▲475.84 ▼0.0199.58 ▼8.6777.27 ▲31.47
Posts /wp-admin/edit.php2,138 ▲492.02 ▲0.0133.37 ▼24.6532.80 ▼19.85
Add New Post /wp-admin/post-new.php1,563 ▲4317.47 ▼5.52654.01 ▼8.1353.78 ▼18.23
Media Library /wp-admin/upload.php1,423 ▲354.13 ▼0.05100.67 ▲1.0066.61 ▲18.87

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
  • 8× 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/amilia-store/blocks/amilia-store-iframe.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amilia-store/amilia-store.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/amilia-store/shortcodes/amilia-store-table.php:59
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/amilia-store/shortcodes/amilia-store-calendar.php:125
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/amilia-store/shortcodes/amilia-store-iframe.php:54
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/amilia-store/shortcodes/amilia-store-standings.php:202
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amilia-store/blocks/amilia-store-calendar.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amilia-store/blocks/amilia-store-standings.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed: You can look at the official readme.txt

amilia-store/amilia-store.php Passed 13 tests

"Amilia Store" version 2.9.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
47 characters long description:
Embeds your Amilia Store inside a page or post.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin3,380 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript12247442,543
PHP84917706
CSS1170108
SVG71023

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/edit.png0.44KB0.34KB▼ 22.22%
images/check.png0.42KB0.32KB▼ 24.59%
images/lock.png0.34KB0.25KB▼ 24.64%