84% faq-zyrex

Code Review | ZYREX FAQ

WordPress plugin ZYREX FAQ scored84%from 54 tests.

About plugin

  • Plugin page: faq-zyrex
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 27, 2022
  • Latest release: Dec 28, 2022
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: zyrexpl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /124 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 gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼12.85ms] Passed 4 tests

This is a short check of server-side resources used by ZYREX FAQ
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0340.09 ▼1.57
Dashboard /wp-admin3.37 ▼0.0144.70 ▼23.40
Posts /wp-admin/edit.php3.42 ▲0.0350.85 ▲4.04
Add New Post /wp-admin/post-new.php5.95 ▲0.0389.77 ▼25.27
Media Library /wp-admin/upload.php3.29 ▲0.0334.24 ▼1.16

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: no files
Database: 1 new table, 6 new options
New tables
wp_zxfaq
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by ZYREX FAQ
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.25 ▼1.531.58 ▼0.3137.51 ▼3.34
Dashboard /wp-admin2,212 ▲205.99 ▲1.03107.44 ▼1.3436.70 ▼1.11
Posts /wp-admin/edit.php2,101 ▲121.99 ▼0.0540.69 ▲6.4734.79 ▲4.64
Add New Post /wp-admin/post-new.php1,545 ▲2323.20 ▲0.09659.14 ▲60.4850.09 ▼1.98
Media Library /wp-admin/upload.php1,397 ▲154.20 ▼0.0194.37 ▼5.6642.57 ▼2.80

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/faq-zyrex/class/class.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/faq-zyrex/class/class.php:10

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: frequently asked questions, faq

faq-zyrex/zx-faq.php 92% from 13 tests

The main PHP file in "ZYREX FAQ" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("faq-zyrex.php" instead of "zx-faq.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected278 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP32418222
CSS16056

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin