74% page-loading

Code Review | Page Loading

WordPress plugin Page Loading scored74%from 54 tests.

About plugin

  • Plugin page: page-loading
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8
  • WordPress version: 6.3.1
  • First release: Mar 2, 2014
  • Latest release: Mar 5, 2014
  • Number of updates: 13
  • Update frequency: every 0.2 days
  • Top authors: eflyjason (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,790 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 gracefully, with no errors

Server metrics [RAM: ▼1.96MB] [CPU: ▼54.66ms] Passed 4 tests

Server-side resources used by Page Loading
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.02 ▼1.446.41 ▼37.16
Dashboard /wp-admin2.05 ▼1.265.76 ▼46.32
Posts /wp-admin/edit.php2.05 ▼1.315.25 ▼46.32
Add New Post /wp-admin/post-new.php2.05 ▼3.845.58 ▼88.82
Media Library /wp-admin/upload.php2.05 ▼1.184.99 ▼32.18

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Page Loading
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.38 ▼0.042.05 ▲0.1938.75 ▼5.90
Dashboard /wp-admin2,200 ▲205.62 ▼0.0386.69 ▼1.2939.97 ▼1.21
Posts /wp-admin/edit.php2,102 ▲21.98 ▲0.0240.04 ▲4.9637.83 ▲0.10
Add New Post /wp-admin/post-new.php1,528 ▼123.71 ▲0.47660.11 ▲11.9752.37 ▼0.01
Media Library /wp-admin/upload.php1,396 ▼44.17 ▼0.12104.13 ▼1.8543.32 ▼1.95

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the page-loading handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • 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 no errors were found, 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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/page-loading/page-loading.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
3 plugin tags: loading, page, css3

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

The main file in "Page Loading" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
119 characters long description:
Add a CSS3 effect to your blog while loading pages. 給你的部落格增加一個帶有CSS3效果的頁面載入動畫

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
Everything looks great! No dangerous files found in this plugin105 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS10176
PHP1132329

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin