83% c4d-popup-content

Code Review | C4D WP Popup

WordPress plugin C4D WP Popup scored83%from 54 tests.

About plugin

  • Plugin page: c4d-popup-content
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Feb 16, 2017
  • Latest release: Mar 14, 2017
  • Number of updates: 8
  • Update frequency: every 3.0 days
  • Top authors: coffee4dev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /623 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.64ms] Passed 4 tests

An overview of server-side resources used by C4D WP Popup
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.93 ▼2.24
Dashboard /wp-admin3.33 ▲0.0347.30 ▼2.26
Posts /wp-admin/edit.php3.38 ▲0.0349.06 ▼2.55
Add New Post /wp-admin/post-new.php5.91 ▲0.0387.54 ▼15.49
Media Library /wp-admin/upload.php3.25 ▲0.0340.54 ▲3.69
Add New /wp-admin/post-new.php?post_type=c4d-wp-popup3.3750.29
C4D WP Popup /wp-admin/edit.php?post_type=c4d-wp-popup3.3039.19

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for C4D WP Popup
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲11113.75 ▼0.478.68 ▲6.8343.00 ▼1.05
Dashboard /wp-admin2,219 ▲425.59 ▲0.0692.18 ▲2.2238.99 ▼1.53
Posts /wp-admin/edit.php2,127 ▲271.99 ▼0.0240.86 ▲2.2236.18 ▼0.90
Add New Post /wp-admin/post-new.php1,549 ▲2323.42 ▲0.35623.64 ▼90.6752.77 ▼11.14
Media Library /wp-admin/upload.php1,421 ▲244.22 ▼0.01101.96 ▼6.6139.95 ▼9.23
Add New /wp-admin/post-new.php?post_type=c4d-wp-popup2,2377.55169.3965.00
C4D WP Popup /wp-admin/edit.php?post_type=c4d-wp-popup1,0971.9731.0730.35

Uninstaller [IO: ▲0.00MB] [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
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/c4d-popup-content/c4d-wp-popup.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

c4d-popup-content/c4d-wp-popup.php 85% from 13 tests

Analyzing the main PHP file in "C4D WP Popup" version 2.0.0
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("c4d-popup-content.php" instead of "c4d-wp-popup.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected3,064 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript41,3703332,344
CSS3739523
PHP12114153
Sass10033
JSON10011

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin