78% pmzez-page-loader

Code Review | PmZez Ajax Page Loader

WordPress plugin PmZez Ajax Page Loader scored78%from 54 tests.

About plugin

  • Plugin page: pmzez-page-loader
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.1
  • WordPress version: 6.3.1
  • First release: Jun 3, 2014
  • Latest release: Dec 30, 2014
  • Number of updates: 23
  • Update frequency: every 9.2 days
  • Top authors: sagor.touch (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /3,260 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.46ms] Passed 4 tests

A check of server-side resources used by PmZez Ajax Page Loader
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.28 ▼5.25
Dashboard /wp-admin3.33 ▲0.0344.46 ▼3.56
Posts /wp-admin/edit.php3.38 ▲0.0249.34 ▲4.90
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.16 ▼10.92
Media Library /wp-admin/upload.php3.25 ▲0.0235.78 ▲1.91

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

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

Browser metrics Passed 4 tests

A check of browser resources used by PmZez Ajax Page Loader
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,977 ▲24213.86 ▼0.966.73 ▲4.9842.30 ▼6.46
Dashboard /wp-admin2,233 ▲455.00 ▲0.09102.65 ▼12.5440.20 ▼7.38
Posts /wp-admin/edit.php2,121 ▲322.31 ▲0.2840.33 ▲4.6633.49 ▼1.71
Add New Post /wp-admin/post-new.php1,535 ▲2117.76 ▲0.20691.68 ▲23.7135.52 ▼12.65
Media Library /wp-admin/upload.php1,415 ▲274.49 ▲0.2798.07 ▼12.5641.42 ▼4.62
PmZez Page Loader /wp-admin/pmzez-page-loader.php260.440.1315.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/pmzez-page-loader/myfunction.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/pmzez-page-loader/myfunction.php:16

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/pmzez-page-loader.php
    • > Network (severe)
    wp-admin/pmzez-page-loader.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (PmZez Page Loader work all page Example - 1.), #2 (PmZez Page Loader work all page Example - 2 .)
Please take inspiration from this readme.txt

pmzez-page-loader/myfunction.php 85% from 13 tests

"PmZez Ajax Page Loader" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("pmzez-page-loader.php" instead of "myfunction.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 176 characters long)

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
There were no executable files found in this plugin413 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3100108281
PHP1212582
CSS111350

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin