83% west-art-image-transitions

Code Review | Image transitions

WordPress plugin Image transitions scored83%from 54 tests.

About plugin

  • Plugin page: west-art-image-tr...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Apr 6, 2014
  • Latest release: Apr 6, 2014
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: jesperb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,824 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼11.71ms] Passed 4 tests

Analyzing server-side resources used by Image transitions
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.77 ▼1.98
Dashboard /wp-admin3.32 ▲0.0144.42 ▼13.53
Posts /wp-admin/edit.php3.37 ▲0.0146.32 ▼6.08
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.69 ▼25.23
Media Library /wp-admin/upload.php3.24 ▲0.0133.94 ▲0.98

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Image transitions
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲13913.68 ▼0.704.91 ▲2.9139.87 ▲1.67
Dashboard /wp-admin2,206 ▲214.89 ▼0.9299.31 ▼3.4137.88 ▼7.89
Posts /wp-admin/edit.php2,089 ▼31.98 ▼0.0839.54 ▲0.8035.13 ▼0.92
Add New Post /wp-admin/post-new.php1,533 ▼023.31 ▲0.40666.55 ▲16.4758.54 ▲6.16
Media Library /wp-admin/upload.php1,388 ▲64.19 ▼0.0295.01 ▼4.3639.84 ▼7.64

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/west-art-image-transitions/it-functions.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === west-art-image-transitions === )
The official readme.txt is a good inspiration

west-art-image-transitions/it-functions.php 92% from 13 tests

The main PHP file in "Image transitions" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("west-art-image-transitions.php" instead of "it-functions.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin99 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP17857
CSS12032
JavaScript22010

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin