78% nzymes

Code Review | Nzymes

WordPress plugin Nzymes scored78%from 54 tests.

About plugin

  • Plugin page: nzymes
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.7.5
  • WordPress version: 6.3.1
  • First release: May 29, 2017
  • Latest release: May 29, 2017
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: aercolino (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /743 total downloads

Benchmarks

Plugin footprint 83% 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.15MB] [CPU: ▼2.06ms] Passed 4 tests

Server-side resources used by Nzymes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.09 ▲0.6341.41 ▲1.60
Dashboard /wp-admin3.44 ▲0.1345.65 ▼2.88
Posts /wp-admin/edit.php3.55 ▲0.1946.04 ▼1.32
Add New Post /wp-admin/post-new.php6.02 ▲0.1385.70 ▼2.80
Media Library /wp-admin/upload.php3.35 ▲0.1236.22 ▼1.23

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
__nzymes__global_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Nzymes: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.411.63 ▼0.1241.51 ▲2.64
Dashboard /wp-admin2,209 ▲184.86 ▼0.01106.78 ▲0.9439.46 ▼2.84
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0138.12 ▼1.3333.76 ▼0.36
Add New Post /wp-admin/post-new.php1,542 ▲918.57 ▼4.57596.96 ▼72.0053.26 ▲2.68
Media Library /wp-admin/upload.php1,382 ▼64.19 ▼0.0297.37 ▼18.8340.38 ▼9.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/nzymes/nzymes.php
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/nzymes/src/Nzymes/Engine.php on line 2
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/nzymes/src/Nzymes/Engine.php on line 2
    • > PHP Warning
      Use of undefined constant NZYMES_PRIMARY - assumed 'NZYMES_PRIMARY' (this will throw an Error in a future version of PHP) in wp-content/plugins/nzymes/src/Nzymes/Plugin.php on line 2
    • > PHP Fatal error
      require_once(): Failed opening required './src/Nzymes/Capabilities.php' (include_path='.:/usr/share/php') in wp-content/plugins/nzymes/src/Nzymes/Plugin.php on line 2
    • > PHP Warning
      require_once(./src/Nzymes/Capabilities.php): failed to open stream: No such file or directory in wp-content/plugins/nzymes/src/Nzymes/Plugin.php on line 2
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/nzymes/src/Nzymes/Engine.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: post, enzymes, author, inject, code...

nzymes/nzymes.php 92% from 13 tests

The main PHP script in "Nzymes" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 211 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin3,042 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP113911,6222,294
Markdown24680748

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity26.40
▷ Minimum class complexity1.00
▷ Maximum class complexity118.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods179
▷ Static methods9452.51%
▷ Public methods10960.89%
▷ Protected methods7039.11%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants41
▷ Global constants24.88%
▷ Class constants3995.12%
▷ Public constants39100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 1.28MB with 0.94MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-4.png142.33KB36.62KB▼ 74.27%
assets/screenshot-3.png126.98KB35.42KB▼ 72.10%
assets/banner-772x250.png379.94KB84.05KB▼ 77.88%
assets/screenshot-5.png134.84KB38.03KB▼ 71.79%
assets/icon-128x128.png34.46KB9.53KB▼ 72.35%