89% change-class-in-viewport

Code Review | Change class in viewport: create animations with pure CSS

WordPress plugin Change class in viewport: create animations with pure CSS scored89%from 54 tests.

About plugin

  • Plugin page: change-class-in-v...
  • Plugin version: 0.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Jul 26, 2021
  • Latest release: Nov 1, 2023
  • Number of updates: 15
  • Update frequency: every 55.3 days
  • Top authors: giuse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,060 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 gracefully, with no errors

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

An overview of server-side resources used by Change class in viewport: create animations with pure CSS
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.76 ▼2.94
Dashboard /wp-admin3.31 ▲0.0148.37 ▼13.01
Posts /wp-admin/edit.php3.36 ▲0.0051.42 ▼2.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0099.21 ▼1.33
Media Library /wp-admin/upload.php3.23 ▲0.0035.73 ▲0.49

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Change class in viewport: create animations with pure CSS
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.28 ▼0.072.07 ▲0.4640.14 ▲0.00
Dashboard /wp-admin2,198 ▲235.62 ▼0.1392.65 ▼6.3344.04 ▲3.13
Posts /wp-admin/edit.php2,100 ▼02.16 ▲0.1439.73 ▼1.0735.61 ▼1.51
Add New Post /wp-admin/post-new.php1,526 ▲122.98 ▼0.17622.55 ▼37.8361.42 ▲11.85
Media Library /wp-admin/upload.php1,400 ▼04.23 ▼0.0095.28 ▼7.1240.77 ▼2.24

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: css effects, animations

change-class-in-viewport/change-class-in-viewport.php 85% from 13 tests

The main file in "Change class in viewport: create animations with pure CSS" v. 0.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/languages/")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin23 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP231923

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin