94% aura-thumb-site

Code Review | Aura Thumb Site

WordPress plugin Aura Thumb Site scored 94% from 54 tests.

About plugin

  • Plugin page: aura-thumb-site
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5.3
  • WordPress version: 5.8.1
  • First release: Nov 15, 2020
  • Latest release: Nov 17, 2020
  • Number of updates: 37
  • Update frequency: every 0.1 days
  • Top authors: Karra Max (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 203 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼142.09ms] Passed 4 tests

A check of server-side resources used by Aura Thumb Site
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0341.03 ▲3.28
Dashboard /wp-admin3.09 ▲0.0346.93 ▼1.64
Posts /wp-admin/edit.php3.14 ▲0.0343.62 ▲0.46
Add New Post /wp-admin/post-new.php5.44 ▲0.0188.35 ▼568.20
Media Library /wp-admin/upload.php3.03 ▲0.0333.18 ▲1.01
Aura Thumb Site /wp-admin/options-general.php?page=ATS_thumb_site_menu3.0031.85

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Aura Thumb Site
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,697 ▲12515.90 ▲0.418.92 ▼0.4844.39 ▼8.25
Dashboard /wp-admin2,980 ▲496.18 ▲0.26133.15 ▼17.51109.50 ▼2.87
Posts /wp-admin/edit.php2,749 ▲102.72 ▼0.0962.78 ▼5.6992.07 ▲3.48
Add New Post /wp-admin/post-new.php1,509 ▼16318.59 ▼0.35354.60 ▼7.72105.58 ▼0.51
Media Library /wp-admin/upload.php1,820 ▲105.06 ▲0.03156.41 ▲3.18123.87 ▲9.02
Aura Thumb Site /wp-admin/options-general.php?page=ATS_thumb_site_menu1,2742.3659.1482.80

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/aura-thumb-site/aura-thumb-site.php:9

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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: live, site, url, thumbnail, mini...

aura-thumb-site/aura-thumb-site.php 92% from 13 tests

The entry point to "Aura Thumb Site" version 1.0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 173 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,090 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript213937859
PHP178171
PO File1193857
CSS1002
HTML1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
js/jscolor/hv.png2.80KB7.32KB0.00%
js/jscolor/hs.png2.62KB7.54KB0.00%