84% wpazure-site-library

Code Review | Wpazure Site Library

WordPress plugin Wpazure Site Library scored 84% from 54 tests.

About plugin

  • Plugin page: wpazure-site-library
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.0-5.6
  • WordPress version: 6.3.1
  • First release: Jun 29, 2019
  • Latest release: Jan 11, 2021
  • Number of updates: 18
  • Update frequency: every 31.2 days
  • Top authors: wpazure (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 2,584 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.70ms] Passed 4 tests

This is a short check of server-side resources used by Wpazure Site Library
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.09 ▼2.10
Dashboard /wp-admin3.31 ▲0.0145.49 ▼8.40
Posts /wp-admin/edit.php3.36 ▲0.0148.00 ▼0.44
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.87 ▼11.84
Media Library /wp-admin/upload.php3.24 ▲0.0138.69 ▲2.66

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Wpazure Site Library: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.17 ▼1.274.46 ▲2.6743.35 ▼6.43
Dashboard /wp-admin2,197 ▲125.03 ▲0.1097.97 ▼6.5138.07 ▼0.61
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0536.80 ▼0.8933.69 ▲1.20
Add New Post /wp-admin/post-new.php1,534 ▼023.39 ▼0.01623.28 ▲9.7956.09 ▲1.63
Media Library /wp-admin/upload.php1,388 ▼04.28 ▲0.0696.48 ▼10.8841.50 ▼5.24

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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 items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wpazure-site-library/demo-data/demo-install.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpazure-site-library/wpazure-site-library.php:19

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 93% from 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: demo, one click import, theme demos

wpazure-site-library/wpazure-site-library.php 85% from 13 tests

The entry point to "Wpazure Site Library" version 1.1.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 180 characters long)
  • Requires at least: Required version does not match the one declared in readme.txt ("4.5" instead of "3.3.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin16,382 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
XML631719016,186
PHP24024196

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Constants0
▷ Global constants00.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 compressed PNG file occupies 0.12MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
demo-data/spa/imgpsh_fullsize_anim (1).png126.45KB135.98KB0.00%