84% zippem

Code Review | Zippem

WordPress plugin Zippem scored84%from 54 tests.

About plugin

  • Plugin page: zippem
  • Plugin version: 0.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9.2
  • WordPress version: 6.3.1
  • First release: Nov 1, 2013
  • Latest release: Aug 21, 2014
  • Number of updates: 7
  • Update frequency: every 41.9 days
  • Top authors: miyarakira (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,082 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.00ms] Passed 4 tests

A check of server-side resources used by Zippem
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0642.26 ▼2.38
Dashboard /wp-admin3.38 ▲0.0748.49 ▼3.90
Posts /wp-admin/edit.php3.49 ▲0.1349.15 ▲0.46
Add New Post /wp-admin/post-new.php5.96 ▲0.0786.47 ▼9.53
Media Library /wp-admin/upload.php3.30 ▲0.0736.93 ▼0.20
Zippem /wp-admin/tools.php?page=zippem3.2532.98

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
zippem_settings
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Zippem: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.37 ▲0.102.08 ▲0.2441.30 ▼1.19
Dashboard /wp-admin2,202 ▲255.64 ▲0.0187.78 ▼15.4438.32 ▼4.27
Posts /wp-admin/edit.php2,104 ▼02.06 ▲0.0939.90 ▼0.1135.47 ▲2.28
Add New Post /wp-admin/post-new.php1,549 ▲1823.14 ▲0.01668.07 ▲24.9458.24 ▲6.86
Media Library /wp-admin/upload.php1,401 ▲14.26 ▲0.03103.24 ▼4.9246.12 ▲0.28
Zippem /wp-admin/tools.php?page=zippem8702.0428.9735.96

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/zippem/zippem.php:39

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)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: files, zip, theme, media, site...

zippem/zippem.php Passed 13 tests

The main PHP file in "Zippem" ver. 0.1.5 adds more information about the plugin and also serves as the entry point for this plugin
40 characters long description:
Zip and download any folder on your site

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
There were no executable files found in this plugin366 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2115102366

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity53.00
▷ Minimum class complexity53.00
▷ Maximum class complexity53.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin