84% saola-animate-helper

Code Review | Saola Animate Helper

WordPress plugin Saola Animate Helper scored84%from 54 tests.

About plugin

  • Plugin page: saola-animate-helper
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.5
  • WordPress version: 6.3.1
  • First release: Aug 31, 2018
  • Latest release: Aug 16, 2020
  • Number of updates: 5
  • Update frequency: every 143.4 days
  • Top authors: berginformatik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,210 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Saola Animate Helper
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.69 ▲1.42
Dashboard /wp-admin3.34 ▲0.0448.60 ▲4.55
Posts /wp-admin/edit.php3.39 ▲0.0447.71 ▲6.33
Add New Post /wp-admin/post-new.php5.92 ▲0.0499.89 ▲14.55
Media Library /wp-admin/upload.php3.26 ▲0.0434.93 ▼0.29
All Saola Animations /wp-admin/edit.php?post_type=saola-animation3.3135.08
Add Saola Animation /wp-admin/post-new.php?post_type=saola-animation3.3040.58

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_saola_animate_helper
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Saola Animate Helper
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲9213.27 ▼1.115.73 ▲4.1043.18 ▼1.86
Dashboard /wp-admin2,236 ▲574.84 ▼0.09104.95 ▼13.7741.13 ▼6.75
Posts /wp-admin/edit.php2,116 ▲272.04 ▲0.0434.77 ▼5.5632.27 ▼4.09
Add New Post /wp-admin/post-new.php1,565 ▲3018.42 ▼4.63600.16 ▲15.3753.38 ▲10.08
Media Library /wp-admin/upload.php1,415 ▲274.18 ▼0.0393.47 ▼10.5041.75 ▼4.28
All Saola Animations /wp-admin/edit.php?post_type=saola-animation1,0852.0029.6329.30
Add Saola Animation /wp-admin/post-new.php?post_type=saola-animation1,6462.5547.8876.97

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_saola_animate_helper
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/saola-animate-helper/class/class.widget.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/saola-animate-helper/saola-animate-helper.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: saola, animate

saola-animate-helper/saola-animate-helper.php 92% from 13 tests

The principal PHP file in "Saola Animate Helper" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 159 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin572 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP487125424
PO File15776148

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity15.67
▷ Minimum class complexity5.00
▷ Maximum class complexity35.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods22
▷ Static methods29.09%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected