99% animista

Code Review | Animista

WordPress plugin Animista scored 99% from 54 tests.

About plugin

  • Plugin page: animista
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5.6
  • WordPress version: 5.9.2
  • First release: Dec 17, 2020
  • Latest release: Dec 17, 2020
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: tropicalista (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 224 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 gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼291.09ms] Passed 4 tests

An overview of server-side resources used by Animista
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0253.25 ▼1.35
Dashboard /wp-admin3.47 ▲0.0334.22 ▲1.76
Posts /wp-admin/edit.php3.69 ▲0.0237.58 ▲2.35
Add New Post /wp-admin/post-new.php6.93 ▼0.0794.54 ▼1,167.11
Media Library /wp-admin/upload.php3.34 ▲0.0227.15 ▲3.03

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Animista
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.97 ▲0.316.00 ▼0.382.48 ▲0.28
Dashboard /wp-admin2,895 ▲416.16 ▼0.04121.36 ▼19.29163.23 ▼5.28
Posts /wp-admin/edit.php2,688 ▼33.24 ▲0.0065.27 ▲3.21139.72 ▲3.14
Add New Post /wp-admin/post-new.php1,790 ▲12222.33 ▲3.61453.21 ▲52.89162.33 ▲3.80
Media Library /wp-admin/upload.php1,698 ▼05.52 ▲0.04146.59 ▲3.71192.45 ▲8.15

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Please describe screenshot #1 in animista/assets to your readme.txt
You can look at the official readme.txt

animista/plugin.php 85% from 13 tests

The main file in "Animista" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("animista.php" instead of "plugin.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 152 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
No dangerous file extensions were detected2,778 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS2307252,723
PHP2115953
JavaScript2002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 images were found in this plugin