99% woo-zap-mirror

Code Review | Woo Zap Mirror

WordPress plugin Woo Zap Mirror scored 99% from 54 tests.

About plugin

  • Plugin page: woo-zap-mirror
  • Plugin version: 1.4.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.5
  • WordPress version: 5.9.2
  • First release: Feb 26, 2016
  • Latest release: Nov 19, 2020
  • Number of updates: 86
  • Update frequency: every 20.1 days
  • Top authors: idofri (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

500+ active / 4,881 total downloads

Benchmarks

Plugin footprint Passed 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.02MB] [CPU: ▼297.99ms] Passed 4 tests

Analyzing server-side resources used by Woo Zap Mirror
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0154.13 ▲3.66
Dashboard /wp-admin3.41 ▲0.0041.87 ▲8.23
Posts /wp-admin/edit.php3.65 ▲0.0042.09 ▲3.59
Add New Post /wp-admin/post-new.php6.89 ▼0.08100.82 ▼1,190.59
Media Library /wp-admin/upload.php3.30 ▼0.0122.84 ▼8.60

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Woo Zap Mirror
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4116.01 ▲0.397.04 ▲0.292.63 ▼0.38
Dashboard /wp-admin2,889 ▲286.14 ▼0.10120.05 ▼11.59156.73 ▼5.62
Posts /wp-admin/edit.php2,694 ▲33.23 ▼0.0166.44 ▲2.24138.12 ▼2.90
Add New Post /wp-admin/post-new.php1,661 ▼015.77 ▼0.27411.24 ▼34.30154.79 ▲1.52
Media Library /wp-admin/upload.php1,695 ▼05.48 ▼0.04136.40 ▼13.64183.82 ▼6.55

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: woocommerce, index, xml, zap, mirror site

woo-zap-mirror/WC_Zap_Mirror.php 85% from 13 tests

The primary PHP file in "Woo Zap Mirror" version 1.4.6 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.7" instead of "3.0")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-zap-mirror.php" instead of "WC_Zap_Mirror.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin974 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP210264644
JavaScript12433290
CSS22540

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity44.00
▷ Minimum class complexity44.00
▷ Maximum class complexity44.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods29
▷ Static methods13.45%
▷ Public methods2896.55%
▷ Protected methods00.00%
▷ Private methods13.45%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin