94% css3-transitions

Code Review | CSS3 Transitions

WordPress plugin CSS3 Transitions scored 94% from 54 tests.

About plugin

  • Plugin page: css3-transitions
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9
  • WordPress version: 5.8.1
  • First release: Jan 1, 2013
  • Latest release: Nov 12, 2017
  • Number of updates: 20
  • Update frequency: every 88.8 days
  • Top authors: celloexpressions (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active / 12,775 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼147.05ms] Passed 4 tests

Analyzing server-side resources used by CSS3 Transitions
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1236.88 ▲13.91
Dashboard /wp-admin3.06 ▲0.0151.06 ▼9.71
Posts /wp-admin/edit.php3.12 ▲0.0147.96 ▼6.91
Add New Post /wp-admin/post-new.php5.42 ▼0.0198.09 ▼569.31
Media Library /wp-admin/upload.php3.01 ▲0.0035.39 ▼2.28

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for CSS3 Transitions
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,709 ▲11415.92 ▲0.3512.97 ▲3.6047.88 ▲0.87
Dashboard /wp-admin2,973 ▲425.87 ▼0.12146.65 ▼65.66117.25 ▼18.15
Posts /wp-admin/edit.php2,742 ▲32.72 ▼0.0075.08 ▲1.5188.57 ▼11.00
Add New Post /wp-admin/post-new.php1,686 ▲318.72 ▲0.33398.29 ▼6.68113.93 ▲1.57
Media Library /wp-admin/upload.php1,810 ▲35.05 ▲0.03159.06 ▲5.72119.43 ▼2.21

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× 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/css3-transitions/css3-transitions.php:31

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 96% 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
10 plugin tags: eye candy, smooth, animations, transitions, css3...

css3-transitions/css3-transitions.php 92% from 13 tests

The main PHP file in "CSS3 Transitions" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 157 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
Everything looks great! No dangerous files found in this plugin23 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP173223

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
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
There were not PNG files found in your plugin