74% repositoryzip

Code Review | Repository Zip

WordPress plugin Repository Zip scored74%from 54 tests.

About plugin

  • Plugin page: repositoryzip
  • Plugin version: 0.14
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.4.2
  • WordPress version: 6.3.1
  • First release: Oct 19, 2012
  • Latest release: Nov 2, 2012
  • Number of updates: 17
  • Update frequency: every 0.8 days
  • Top authors: flashpixx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,183 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼4.49ms] Passed 4 tests

Analyzing server-side resources used by Repository Zip
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0838.42 ▲1.84
Dashboard /wp-admin3.40 ▲0.0654.79 ▼4.84
Posts /wp-admin/edit.php3.52 ▲0.1646.48 ▲2.18
Add New Post /wp-admin/post-new.php5.98 ▲0.0982.10 ▼17.14
Media Library /wp-admin/upload.php3.33 ▲0.0934.81 ▲3.87
Repository Zip /wp-admin/options-general.php?page=fpx_repositoryzip_option3.2930.49

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Repository Zip
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.12 ▼1.251.94 ▲0.1945.09 ▲5.09
Dashboard /wp-admin2,207 ▲195.79 ▼0.0297.93 ▼5.5839.83 ▼3.76
Posts /wp-admin/edit.php2,093 ▲42.18 ▲0.1433.91 ▼3.1134.85 ▲0.07
Add New Post /wp-admin/post-new.php1,517 ▲317.42 ▼0.25694.22 ▲13.2955.65 ▼1.50
Media Library /wp-admin/upload.php1,395 ▲104.21 ▼0.0397.98 ▼1.7044.14 ▼2.04
Repository Zip /wp-admin/options-general.php?page=fpx_repositoryzip_option8632.0322.8429.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-includes/option.php+2520
    Undefined index: fpx_repositoryzip_option
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
The following issues need your attention
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/repositoryzip/gitdownload.php
    • > /wp-content/plugins/repositoryzip/svndownload.php
    • > /wp-content/plugins/repositoryzip/repositoryzip.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 97% 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
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === repositoryzip === )
The official readme.txt is a good inspiration

repositoryzip/repositoryzip.php Passed 13 tests

This is the main PHP file of "Repository Zip" version 0.14, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
78 characters long description:
The plugin creates a zip file for downloading subversion or git repositorities

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
Good job! No executable or dangerous file extensions detected436 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP6164223436

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity15.00
▷ Minimum class complexity11.00
▷ Maximum class complexity19.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods1894.74%
▷ Public methods1894.74%
▷ Protected methods00.00%
▷ Private methods15.26%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin