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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 38.42 ▲1.84 |
Dashboard /wp-admin | 3.40 ▲0.06 | 54.79 ▼4.84 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 46.48 ▲2.18 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 82.10 ▼17.14 |
Media Library /wp-admin/upload.php | 3.33 ▲0.09 | 34.81 ▲3.87 |
Repository Zip /wp-admin/options-general.php?page=fpx_repositoryzip_option | 3.29 | 30.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.12 ▼1.25 | 1.94 ▲0.19 | 45.09 ▲5.09 |
Dashboard /wp-admin | 2,207 ▲19 | 5.79 ▼0.02 | 97.93 ▼5.58 | 39.83 ▼3.76 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.18 ▲0.14 | 33.91 ▼3.11 | 34.85 ▲0.07 |
Add New Post /wp-admin/post-new.php | 1,517 ▲3 | 17.42 ▼0.25 | 694.22 ▲13.29 | 55.65 ▼1.50 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.21 ▼0.03 | 97.98 ▼1.70 | 44.14 ▼2.04 |
Repository Zip /wp-admin/options-general.php?page=fpx_repositoryzip_option | 863 | 2.03 | 22.84 | 29.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 ===
)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 164 | 223 | 436 |
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 code | 0.45 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 18 | 94.74% |
▷ Public methods | 18 | 94.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.26% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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