84% easy-free-popup

Code Review | Easy Free Popup

WordPress plugin Easy Free Popup scored84%from 54 tests.

About plugin

  • Plugin page: easy-free-popup
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7.1
  • WordPress version: 6.3.1
  • First release: Jan 15, 2017
  • Latest release: Jan 15, 2017
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: jcuryllo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.05MB] [CPU: ▼7.36ms] Passed 4 tests

This is a short check of server-side resources used by Easy Free Popup
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.92 ▲5.77
Dashboard /wp-admin3.36 ▲0.0244.90 ▼13.53
Posts /wp-admin/edit.php3.41 ▲0.0645.64 ▼0.51
Add New Post /wp-admin/post-new.php5.94 ▲0.0678.22 ▼17.30
Media Library /wp-admin/upload.php3.28 ▲0.0635.41 ▲1.89

Server storage [IO: ▲0.03MB] [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: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Free Popup
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,857 ▲8613.37 ▼1.002.99 ▲1.1037.63 ▼2.50
Dashboard /wp-admin2,222 ▲305.85 ▲0.91108.68 ▲3.8840.33 ▼2.68
Posts /wp-admin/edit.php2,105 ▲132.01 ▲0.0140.29 ▲5.1336.43 ▲4.59
Add New Post /wp-admin/post-new.php1,527 ▼117.62 ▼5.59665.85 ▼8.3550.06 ▼3.25
Media Library /wp-admin/upload.php1,404 ▲194.19 ▲0.02106.99 ▲9.8746.49 ▲3.47

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-free-popup/settings.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-free-popup/settings.php:17

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% 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
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === easy-free-popup === )
The official readme.txt might help

easy-free-popup/easy-free-popup.php Passed 13 tests

The primary PHP file in "Easy Free Popup" version 0.1 is used by WordPress to initiate all plugin functionality
42 characters long description:
Popup with social media and newsletter box

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin512 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP24731268
PO File23636102
CSS1171482
JavaScript1141060

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions8
▷ Named functions8100.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
No PNG files were detected