68% pixazza

Code Review | Pixazza

WordPress plugin Pixazza scored68%from 54 tests.

About plugin

  • Plugin page: pixazza
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.3.1
  • WordPress version: 6.3.1
  • First release: Mar 11, 2012
  • Latest release: Mar 11, 2012
  • Number of updates: 23
  • Update frequency: N/A
  • Top authors: pivari (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,636 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: ▼0.94MB] [CPU: ▼36.84ms] Passed 4 tests

A check of server-side resources used by Pixazza
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.08 ▼4.10
Dashboard /wp-admin3.01 ▼0.3027.56 ▼25.27
Posts /wp-admin/edit.php3.01 ▼0.3523.30 ▼28.41
Add New Post /wp-admin/post-new.php3.01 ▼2.8823.89 ▼77.17
Media Library /wp-admin/upload.php3.01 ▼0.2222.60 ▼16.52
Pixazza /wp-admin/options-general.php?page=pixazza3.0122.37

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
pixazzaid
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Pixazza
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲9014.27 ▲0.011.92 ▲0.1645.65 ▲0.60
Dashboard /wp-admin2,199 ▲225.68 ▼0.0886.43 ▼15.6039.11 ▼5.49
Posts /wp-admin/edit.php2,104 ▲12.02 ▲0.0337.66 ▼2.8433.86 ▼2.25
Add New Post /wp-admin/post-new.php1,530 ▲423.04 ▼0.20658.22 ▼40.9450.11 ▼5.31
Media Library /wp-admin/upload.php1,398 ▼24.14 ▼0.0396.25 ▼28.1344.96 ▼3.75
Pixazza /wp-admin/options-general.php?page=pixazza8252.1326.3128.10

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=pixazza
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

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 fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pixazza/pixazza.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/pixazza/options.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Add an image for screenshot #1 (Pixazza settings page.)
You can look at the official readme.txt

pixazza/pixazza.php Passed 13 tests

The primary PHP file in "Pixazza" version 1.0.0 is used by WordPress to initiate all plugin functionality
50 characters long description:
A simple Plugin to add Pixazza code on your pages.

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
No dangerous file extensions were detected81 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2242281

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png11.79KB5.92KB▼ 49.77%