78% fullscreen-ajax-loader

Code Review | FullScreen AJAX Loader

WordPress plugin FullScreen AJAX Loader scored78%from 54 tests.

About plugin

  • Plugin page: fullscreen-ajax-l...
  • Plugin version: 1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.2
  • WordPress version: 6.3.1
  • First release: Sep 12, 2019
  • Latest release: Nov 14, 2019
  • Number of updates: 11
  • Update frequency: every 5.9 days
  • Top authors: fpwd (54.55%)webgp (36.36%)sebastian.pisula (27.27%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,429 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.06MB] [CPU: ▼0.35ms] Passed 4 tests

An overview of server-side resources used by FullScreen AJAX Loader
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.83 ▼1.56
Dashboard /wp-admin3.37 ▲0.0645.60 ▼1.92
Posts /wp-admin/edit.php3.42 ▲0.0648.69 ▲0.08
Add New Post /wp-admin/post-new.php5.95 ▲0.0696.83 ▲2.28
Media Library /wp-admin/upload.php3.29 ▲0.0635.75 ▲2.02

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for FullScreen AJAX Loader
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲8414.48 ▼0.261.64 ▼0.2439.60 ▼4.80
Dashboard /wp-admin2,206 ▲355.86 ▲0.98108.22 ▼13.2340.47 ▼2.79
Posts /wp-admin/edit.php2,089 ▼32.03 ▲0.0139.39 ▼1.1235.06 ▼4.14
Add New Post /wp-admin/post-new.php1,533 ▼323.30 ▲0.15661.88 ▲50.8049.33 ▼4.27
Media Library /wp-admin/upload.php1,385 ▼64.23 ▼0.00104.73 ▲4.0047.65 ▲4.47

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% 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 take a closer look at the following
  • 6× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/fullscreen-ajax-loader/templates/circular.php
    • > /wp-content/plugins/fullscreen-ajax-loader/templates/spiral.php
    • > /wp-content/plugins/fullscreen-ajax-loader/templates/floating-bars.php
    • > /wp-content/plugins/fullscreen-ajax-loader/templates/load-ball.php
    • > /wp-content/plugins/fullscreen-ajax-loader/templates/custom.php
    • > /wp-content/plugins/fullscreen-ajax-loader/templates/floating-circles.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function FPWD\\add_action() in wp-content/plugins/fullscreen-ajax-loader/Fullscreen_Ajax_Loader.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed: You can take inspiration from this readme.txt

fullscreen-ajax-loader/Fullscreen_Ajax_Loader.php 92% from 13 tests

The main file in "FullScreen AJAX Loader" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("fullscreen-ajax-loader.php" instead of "Fullscreen_Ajax_Loader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected359 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP66222310
PO File1111447
CSS1001
JavaScript1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.69
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods1392.86%
▷ Protected methods00.00%
▷ Private methods17.14%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin