74% popup-zyrex

Code Review | ZYREX POPUP

WordPress plugin ZYREX POPUP scored74%from 54 tests.

About plugin

  • Plugin page: popup-zyrex
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Dec 9, 2022
  • Latest release: Apr 18, 2023
  • Number of updates: 8
  • Update frequency: every 16.2 days
  • Top authors: zyrexpl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /299 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼8.30ms] Passed 4 tests

Analyzing server-side resources used by ZYREX POPUP
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.54 ▲0.74
Dashboard /wp-admin3.36 ▲0.0144.64 ▼14.69
Posts /wp-admin/edit.php3.41 ▲0.0544.48 ▼6.48
Add New Post /wp-admin/post-new.php5.94 ▲0.0585.17 ▼11.46
Media Library /wp-admin/upload.php3.28 ▲0.0534.62 ▼0.57

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: 1 new table, 6 new options
New tables
wp_zxpopup
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for ZYREX POPUP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲14813.82 ▼0.447.82 ▲5.8945.34 ▼0.84
Dashboard /wp-admin2,204 ▲275.63 ▲0.0186.36 ▼14.9937.15 ▼5.30
Posts /wp-admin/edit.php2,112 ▲92.01 ▲0.0736.11 ▼12.4932.27 ▼4.88
Add New Post /wp-admin/post-new.php1,538 ▲923.11 ▲0.00581.52 ▼38.3256.30 ▼5.80
Media Library /wp-admin/upload.php1,415 ▲154.25 ▲0.0595.88 ▼6.8942.93 ▼0.47

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_zxpopup
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 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/popup-zyrex/class/class.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/popup-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)
No browser issues were 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
3 plugin tags: pop-up, popup, baner

popup-zyrex/zyrex-popup.php 92% from 13 tests

The principal PHP file in "ZYREX POPUP" v. 1.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("popup-zyrex.php" instead of "zyrex-popup.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected417 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP33331320
CSS11164
JavaScript13033

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity3.78
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected