73% easy-page-transition

Code Review | Easy Page Transition

WordPress plugin Easy Page Transition scored 73% from 54 tests.

About plugin

  • Plugin page: easy-page-transition
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 29, 2019
  • Latest release: May 30, 2019
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: lcarlile (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

700+ active / 6,657 total downloads

Benchmarks

Plugin footprint 65% 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.92MB] [CPU: ▼32.70ms] Passed 4 tests

An overview of server-side resources used by Easy Page Transition
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.71 ▼1.97
Dashboard /wp-admin3.02 ▼0.2823.36 ▼25.80
Posts /wp-admin/edit.php3.02 ▼0.3327.91 ▼20.42
Add New Post /wp-admin/post-new.php3.02 ▼2.8624.17 ▼71.96
Media Library /wp-admin/upload.php3.02 ▼0.2024.56 ▼12.61

Server storage [IO: ▲0.15MB] [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: 25 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Page Transition
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,966 ▲23113.68 ▼0.756.24 ▲4.6043.32 ▲2.26
Dashboard /wp-admin2,234 ▲435.89 ▼0.01109.40 ▲2.4751.22 ▲8.43
Posts /wp-admin/edit.php2,127 ▲382.07 ▲0.0739.67 ▲4.3448.67 ▲17.40
Add New Post /wp-admin/post-new.php1,529 ▼523.22 ▲0.03687.45 ▲6.1981.01 ▲27.23
Media Library /wp-admin/upload.php1,417 ▲264.22 ▲0.0993.50 ▼14.7652.03 ▲7.66

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
  • 2× 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/easy-page-transition/admin/settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-page-transition/public/frontend/frontend.php:35

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

readme.txt 81% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Requires at least: Version format is invalid
  • Tags: You are using too many tags: 11 tag instead of maximum 10
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === easy-page-transition === )
The official readme.txt is a good inspiration

easy-page-transition/index.php 85% from 13 tests

The main file in "Easy Page Transition" v. 1.0.1 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:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("easy-page-transition.php" instead of "index.php")
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin502 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
CSS10470233
PHP35944219
JavaScript24838
SVG10012

PHP code Passed 2 tests

This is a short overview 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.76
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
8 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png15.34KB6.69KB▼ 56.42%
assets/banner-772x250-rtl.png15.33KB6.69KB▼ 56.37%
assets/icon-128x128.png0.58KB0.23KB▼ 59.56%
assets/screenshot-1.png26.93KB8.43KB▼ 68.70%
assets/banner-1544x500-rtl.png31.97KB14.37KB▼ 55.05%