84% popup-everything

Code Review | PopUp Everything

WordPress plugin PopUp Everything scored84%from 54 tests.

About plugin

  • Plugin page: popup-everything
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.8
  • WordPress version: 6.3.1
  • First release: Aug 1, 2016
  • Latest release: Aug 2, 2016
  • Number of updates: 6
  • Update frequency: every 50.8 days
  • Top authors: mRommel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,105 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by PopUp Everything
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.35 ▼4.27
Dashboard /wp-admin3.36 ▲0.0551.61 ▲1.80
Posts /wp-admin/edit.php3.41 ▲0.0554.58 ▲0.22
Add New Post /wp-admin/post-new.php5.94 ▲0.0599.19 ▼2.44
Media Library /wp-admin/upload.php3.28 ▲0.0539.60 ▲0.95
Popup Everything /wp-admin/options-general.php?page=popup-everything3.2434.95

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

PopUp Everything: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲1914.27 ▼0.361.85 ▼0.1143.54 ▼0.30
Dashboard /wp-admin2,196 ▲195.59 ▲0.0191.25 ▼2.6341.12 ▲2.19
Posts /wp-admin/edit.php2,104 ▲71.94 ▼0.0339.61 ▲3.7935.11 ▲2.75
Add New Post /wp-admin/post-new.php1,529 ▼623.54 ▲5.15631.62 ▲21.4756.40 ▼18.56
Media Library /wp-admin/upload.php1,404 ▲44.08 ▼0.1397.92 ▼11.7444.31 ▼1.56
Popup Everything /wp-admin/options-general.php?page=popup-everything8962.0026.1227.07

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
The following issues need your attention
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/popup-everything/includes/template.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/popup-everything/includes/options.php:43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/popup-everything/popup-everything.php:15

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 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
You can look at the official readme.txt

popup-everything/popup-everything.php Passed 13 tests

The primary PHP file in "PopUp Everything" version 1.0.1 is used by WordPress to initiate all plugin functionality
134 characters long description:
PopUp Everything plugin lets you display content within a little area on your website. Great for contact information or contact forms.

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
There were no executable files found in this plugin777 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JSON100282
Sass22917218
PHP33463193
PO File1385853
SVG10019
Ruby171211
CSS1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
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

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