94% wp-transitions

Code Review | WP Transitions

WordPress plugin WP Transitions scored 94% from 54 tests.

About plugin

  • Plugin page: wp-transitions
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.8.1
  • WordPress version: 5.8.1
  • First release: Feb 2, 2014
  • Latest release: Mar 7, 2014
  • Number of updates: 12
  • Update frequency: every 2.8 days
  • Top authors: Master Farzad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,146 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by WP Transitions
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0043.34 ▲6.32
Dashboard /wp-admin3.06 ▲0.0147.94 ▼3.80
Posts /wp-admin/edit.php3.11 ▼0.0146.01 ▼11.60
Add New Post /wp-admin/post-new.php5.42 ▼0.0299.27 ▼567.30
Media Library /wp-admin/upload.php3.00 ▲0.0038.05 ▲0.64

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Transitions
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,719 ▲8215.72 ▼0.339.11 ▲0.3450.48 ▼6.70
Dashboard /wp-admin3,008 ▲775.89 ▼0.18136.82 ▼16.98121.72 ▼0.32
Posts /wp-admin/edit.php2,742 ▲32.69 ▼0.0166.29 ▼4.5898.49 ▲3.04
Add New Post /wp-admin/post-new.php1,618 ▼6521.30 ▲2.52289.93 ▼117.25115.45 ▼2.59
Media Library /wp-admin/upload.php1,810 ▲35.01 ▼0.02150.54 ▲2.13138.05 ▲15.38

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
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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 fix the following items
  • 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/wp-transitions/wp-transitions.php:11

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

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
You can take inspiration from this readme.txt

wp-transitions/wp-transitions.php Passed 13 tests

The principal PHP file in "WP Transitions" v. 1.4 is loaded by WordPress automatically on each request
118 characters long description:
Automatically adds CSS transitions to your Wordpress website/blog and Wordpress Admin Elements with hover/active/focus

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin35 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP141235

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin