68% zamen

Code Review | Zamen Wordpress Plugin

WordPress plugin Zamen Wordpress Plugin scored68%from 54 tests.

About plugin

  • Plugin page: zamen
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-4.5
  • WordPress version: 6.3.1
  • First release: Nov 23, 2015
  • Latest release: Apr 5, 2016
  • Number of updates: 13
  • Update frequency: every 10.6 days
  • Top authors: mimv (76.92%)ahmedfawzy (30.77%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,083 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.97MB] [CPU: ▼42.88ms] Passed 4 tests

This is a short check of server-side resources used by Zamen Wordpress Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.93 ▼0.5419.30 ▼23.10
Dashboard /wp-admin3.08 ▼0.2622.54 ▼49.55
Posts /wp-admin/edit.php3.09 ▼0.2724.03 ▼29.03
Add New Post /wp-admin/post-new.php3.08 ▼2.8124.83 ▼69.83
Media Library /wp-admin/upload.php3.08 ▼0.1522.23 ▼14.57

Server storage [IO: ▲0.17MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Zamen Wordpress Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲4013.59 ▼0.791.66 ▼0.5440.28 ▼4.28
Dashboard /wp-admin2,220 ▲355.86 ▲0.05106.61 ▼12.4079.03 ▲40.31
Posts /wp-admin/edit.php2,103 ▲141.97 ▼0.0038.31 ▼2.5038.78 ▲6.15
Add New Post /wp-admin/post-new.php6,227 ▲4,68521.60 ▼1.46908.34 ▲317.9464.37 ▲0.48
Media Library /wp-admin/upload.php1,396 ▲84.21 ▼0.21100.22 ▲7.3365.32 ▲22.47

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5453
    Function add_utility_page is deprecated since version 4.5.0! Use add_menu_page() instead.
  • The uninstall procedure has failed, 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 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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 fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/zamen/zamen.php
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      require_once(): Failed opening required 'ZAMEN_PLUGIN_PATH/includes/zamen-response-class.php' (include_path='.:/usr/share/php') in wp-content/plugins/zamen/includes/zamen-class.php on line 2
    • > PHP Warning
      require_once(ZAMEN_PLUGIN_PATH/includes/zamen-response-class.php): failed to open stream: No such file or directory in wp-content/plugins/zamen/includes/zamen-class.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/zamen/includes/about.page.php:7
    • > PHP Warning
      Use of undefined constant ZAMEN_PLUGIN_PATH - assumed 'ZAMEN_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/zamen/includes/zamen-class.php on line 2
    • > PHP Warning
      Use of undefined constant ZAMEN_PLUGIN_URL - assumed 'ZAMEN_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/zamen/includes/about.page.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: zamen, zamenapp

zamen/zamen.php Passed 13 tests

The main PHP script in "Zamen Wordpress Plugin" version 1.1.2 is automatically included on every request by WordPress
77 characters long description:
Zamen WordPress plugin lets you sync your WordPress blog with Zamen Platform.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin581 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5123132524
PO File191257

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity32.50
▷ Minimum class complexity19.00
▷ Maximum class complexity46.00
Average method complexity3.42
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods26
▷ Static methods27.69%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/zamen-16.png1.30KB0.52KB▼ 60.20%
img/logo.png32.89KB13.80KB▼ 58.04%
img/zamen-32.png1.64KB0.85KB▼ 48.24%