90% page-transition

Code Review | Page Transition

WordPress plugin Page Transition scored90%from 54 tests.

About plugin

  • Plugin page: page-transition
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.0
  • WordPress version: 6.3.1
  • First release: Jul 10, 2014
  • Latest release: Sep 15, 2014
  • Number of updates: 15
  • Update frequency: every 4.5 days
  • Top authors: numixtech (100%)

Code review

54 tests

User reviews

33 reviews

Install metrics

1,000+ active /29,767 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.00MB] [CPU: ▼6.60ms] Passed 4 tests

Analyzing server-side resources used by Page Transition
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.07 ▼2.55
Dashboard /wp-admin3.31 ▼0.0351.32 ▼10.03
Posts /wp-admin/edit.php3.36 ▲0.0156.27 ▲4.92
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.16 ▼15.20
Media Library /wp-admin/upload.php3.24 ▲0.0138.01 ▲1.37
Page Transition /wp-admin/options-general.php?page=page-transition3.2132.14

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Page Transition
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▼0.071.54 ▼0.2044.06 ▲1.98
Dashboard /wp-admin2,193 ▲135.52 ▼0.1085.54 ▼12.8738.00 ▼7.39
Posts /wp-admin/edit.php2,107 ▲71.96 ▼0.0255.62 ▲17.7046.62 ▲11.44
Add New Post /wp-admin/post-new.php1,529 ▲323.10 ▲0.00658.53 ▼22.3971.14 ▲14.19
Media Library /wp-admin/upload.php1,404 ▲14.22 ▲0.0396.41 ▼4.3544.90 ▲2.70
Page Transition /wp-admin/options-general.php?page=page-transition1,1592.3646.8327.50

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (54 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

page-transition/page-transition.php Passed 13 tests

"Page Transition" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
140 characters long description:
Page Transition is a simple and easy wordpress plugin used to add page transition on CSS3 animations. Show your page with modern animations.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,307 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS21114884
PHP239209228
JavaScript3015195

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/numix_post_slider.png8.27KB3.95KB▼ 52.26%