89% page-transition-free-for-wp

Code Review | Page Transition Free for WP

WordPress plugin Page Transition Free for WP scored89%from 54 tests.

About plugin

  • Plugin page: page-transition-f...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.8.2
  • WordPress version: 6.3.1
  • First release: Nov 20, 2021
  • Latest release: Nov 27, 2021
  • Number of updates: 3
  • Update frequency: every 2.3 days
  • Top authors: arnaudpf (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,085 total downloads

Benchmarks

Plugin footprint 83% from 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.21MB] [CPU: ▼6.10ms] Passed 4 tests

A check of server-side resources used by Page Transition Free for WP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1834.98 ▼6.68
Dashboard /wp-admin3.52 ▲0.2148.78 ▲1.74
Posts /wp-admin/edit.php3.64 ▲0.2851.82 ▲1.87
Add New Post /wp-admin/post-new.php6.10 ▲0.2183.89 ▼20.87
Media Library /wp-admin/upload.php3.45 ▲0.2137.44 ▲1.43

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
wppatr-page-selector
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Page Transition Free for WP: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,945 ▲19913.65 ▼0.666.99 ▲5.3653.79 ▲13.09
Dashboard /wp-admin2,246 ▲585.90 ▲1.0197.55 ▼12.0340.14 ▼6.20
Posts /wp-admin/edit.php2,126 ▲402.06 ▲0.0240.41 ▲4.9534.75 ▲0.63
Add New Post /wp-admin/post-new.php1,546 ▲1423.32 ▲0.24637.09 ▼47.8253.22 ▼10.73
Media Library /wp-admin/upload.php1,428 ▲374.30 ▲0.1397.58 ▼4.0340.95 ▼2.23

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: fluent, speed, ajax, loader, page transition...

page-transition-free-for-wp/page-transition-free-wp.php 69% from 13 tests

This is the main PHP file of "Page Transition Free for WP" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.7" instead of "5.4")
  • Description: The description should be shorter than 140 characters (currently 144 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("page-transition-free-for-wp.php" instead of "page-transition-free-wp.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin6,592 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
CSS28103534,492
PHP113055401,075
JavaScript21100749
SVG503276

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity12.11
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods61
▷ Static methods5285.25%
▷ Public methods61100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants10
▷ Global constants220.00%
▷ Class constants880.00%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin