10% pixatopress-lite

Code Review | PixatoPress Lite

WordPress plugin PixatoPress Lite scored10%from 54 tests.

About plugin

  • Plugin page: pixatopress-lite
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9
  • WordPress version: 6.3.1
  • First release: Apr 2, 2014
  • Latest release: Apr 24, 2014
  • Number of updates: 6
  • Update frequency: every 4.3 days
  • Top authors: Lenferink (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,739 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/pixatopress-lite/includes/plugpages.php+91
    Undefined index: px_updateSettings

Server metrics [RAM: ▼1.89MB] [CPU: ▼60.06ms] Passed 4 tests

A check of server-side resources used by PixatoPress Lite
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.11 ▼1.354.47 ▼36.74
Dashboard /wp-admin2.13 ▼1.226.28 ▼58.52
Posts /wp-admin/edit.php2.13 ▼1.236.57 ▼42.06
Add New Post /wp-admin/post-new.php2.13 ▼3.766.07 ▼102.90
Media Library /wp-admin/upload.php2.13 ▼1.106.39 ▼33.59
Settings /wp-admin/admin.php?page=pixato-settings2.135.72
PixatoPress Lite /wp-admin/admin.php?page=pixatopress-lite/index.php2.137.16

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

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

Browser metrics Passed 4 tests

PixatoPress Lite: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6913.56 ▼0.514.32 ▲1.9141.61 ▼2.35
Dashboard /wp-admin2,221 ▲505.65 ▼0.0988.94 ▼1.8787.16 ▲42.18
Posts /wp-admin/edit.php2,144 ▲412.22 ▲0.1938.75 ▼0.9034.61 ▼4.09
Add New Post /wp-admin/post-new.php1,716 ▲19022.70 ▼0.47626.28 ▼57.7952.30 ▼2.47
Media Library /wp-admin/upload.php1,432 ▲354.31 ▲0.0798.68 ▼14.0872.08 ▲18.07
Settings /wp-admin/admin.php?page=pixato-settings1,0281.7828.2828.60
PixatoPress Lite /wp-admin/admin.php?page=pixatopress-lite/index.php1,3473.1446.5095.17

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/pixatopress-lite/includes/plugpages.php+91
    Undefined index: px_updateSettings
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pixatopress-lite/index.php
    • > Notice in wp-content/plugins/pixatopress-lite/includes/plugpages.php+91
    Undefined index: px_updateSettings
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pixatopress-lite/index.php
    • > Notice in wp-content/plugins/pixatopress-lite/index.php+232
    Undefined index: addWallpapers
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pixatopress-lite/index.php
    • > Warning in wp-content/plugins/pixatopress-lite/index.php+336
    Use of undefined constant WPHP_VERSION - assumed 'WPHP_VERSION' (this will throw an Error in a future version of PHP)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pixatopress-lite/index.php
    • > Warning in wp-content/plugins/pixatopress-lite/index.php+145
    Use of undefined constant defaultContent - assumed 'defaultContent' (this will throw an Error in a future version of PHP)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pixatopress-lite/index.php
    • > Warning in wp-content/plugins/pixatopress-lite/index.php+167
    Use of undefined constant defaultNumOfTags - assumed 'defaultNumOfTags' (this will throw an Error in a future version of PHP)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pixatopress-lite/index.php
    • > Warning in wp-content/plugins/pixatopress-lite/index.php+188
    Use of undefined constant defaultTagModifiers - assumed 'defaultTagModifiers' (this will throw an Error in a future version of PHP)

SRP 0% 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 items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/pixatopress-lite/includes/plugsidebar.php
  • 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Warning
      Use of undefined constant PX_URL - assumed 'PX_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/pixatopress-lite/includes/plugsidebar.php on line 26
    • > PHP Warning
      include(): Failed opening 'ABSPATHwp-includes/pluggable.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/pixatopress-lite/index.php on line 19
    • > PHP Warning
      Use of undefined constant PX_URL - assumed 'PX_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/pixatopress-lite/includes/plugsidebar.php on line 25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pixatopress-lite/index.php:45
    • > PHP Notice
      Undefined index: px_updateSettings in wp-content/plugins/pixatopress-lite/includes/plugpages.php on line 91
    • > PHP Notice
      Undefined index: px_updateSettings in wp-content/plugins/pixatopress-lite/includes/plugpages.php on line 91
    • > PHP Warning
      Use of undefined constant PX_URL - assumed 'PX_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/pixatopress-lite/includes/plugsidebar.php on line 6
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/pixatopress-lite/index.php on line 19
    • > PHP Warning
      Use of undefined constant PX_URL - assumed 'PX_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/pixatopress-lite/includes/plugsidebar.php on line 27
    • > 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/pixatopress-lite/index.php on line 25

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pixatopress-lite/index.php
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/pixatopress-lite/assets/js/px_scripts.js?ver=WPHP_VERSION:14:33)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pixatopress-lite/index.php
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pixatopress-lite/index.php
    • > Network (severe)
    http://www.angzhihuagong.com/ads/250x250_b.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=pixatopress-lite/index.php
    • > Network (severe)
    wp-content/plugins/pixatopress-lite/assets/css/images/ui-bg_flat_75_ffffff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Screenshot #1 (PixatoPress In Action) image not found
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === pixatopress-lite === )
You can look at the official readme.txt

pixatopress-lite/index.php 92% from 13 tests

The primary PHP file in "PixatoPress Lite" version 1.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pixatopress-lite.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin837 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS25368427
PHP310651375
JavaScript113735

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
14 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/facebook.png8.75KB4.07KB▼ 53.41%
images/youtube.png11.67KB4.23KB▼ 63.74%
assets/css/images/facebook.png0.68KB0.55KB▼ 18.94%
assets/css/images/bug.png0.97KB0.93KB▼ 3.94%
assets/css/images/twitter.png0.67KB0.53KB▼ 20.53%