10% eewee-popup

Code Review | eewee popup

WordPress plugin eewee popup scored10%from 54 tests.

About plugin

  • Plugin page: eewee-popup
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.5
  • WordPress version: 6.3.1
  • First release: Jan 21, 2013
  • Latest release: Jan 21, 2013
  • Number of updates: 13
  • Update frequency: every 47.3 days
  • Top authors: eewee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,898 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/eewee-popup/controllers/EeweePopup.php+2
    Use of undefined constant EeweePopup - assumed 'EeweePopup' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.95MB] [CPU: ▼54.14ms] Passed 4 tests

A check of server-side resources used by eewee popup
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.416.78 ▼29.22
Dashboard /wp-admin2.07 ▼1.277.52 ▼52.37
Posts /wp-admin/edit.php2.07 ▼1.286.62 ▼45.82
Add New Post /wp-admin/post-new.php2.07 ▼3.816.84 ▼89.14
Media Library /wp-admin/upload.php2.07 ▼1.165.89 ▼26.46
Eewee Popup /wp-admin/admin.php?page=idEeweePopup2.076.90
Manual /wp-admin/admin.php?page=idSousMenuTH22.077.70
Setting /wp-admin/admin.php?page=idSousMenuTH12.075.96

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for eewee popup
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,940 ▲19413.98 ▼0.329.26 ▲7.5845.98 ▲6.99
Dashboard /wp-admin2,241 ▲535.88 ▲1.0397.89 ▼0.4378.52 ▲38.68
Posts /wp-admin/edit.php2,127 ▲382.02 ▼0.0237.92 ▼3.7834.84 ▲0.33
Add New Post /wp-admin/post-new.php1,694 ▲17321.09 ▼2.19648.40 ▼1.3150.35 ▼3.85
Media Library /wp-admin/upload.php1,417 ▲354.18 ▼0.05100.03 ▲4.3248.42 ▲7.00
Eewee Popup /wp-admin/admin.php?page=idEeweePopup7942.0223.2623.43
Manual /wp-admin/admin.php?page=idSousMenuTH29192.0123.4838.00
Setting /wp-admin/admin.php?page=idSousMenuTH19442.0828.7323.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/eewee-popup/controllers/EeweePopup.php+2
    Use of undefined constant EeweePopup - assumed 'EeweePopup' (this will throw an Error in a future version of PHP)
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=idSousMenuTH1
    • > Warning in wp-content/plugins/eewee-popup/controllers/EeweePopup.php+2
    Use of undefined constant EeweePopup - assumed 'EeweePopup' (this will throw an Error in a future version of PHP)
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=idSousMenuTH1
    • > Notice in wp-content/plugins/eewee-popup/controllers/EeweePopup.php+239
    Undefined property: EeweePopup::$adminOptionsName
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=idSousMenuTH1
    • > Warning in wp-content/plugins/eewee-popup/controllers/EeweePopup.php+56
    Use of undefined constant menu - assumed 'menu' (this will throw an Error in a future version of PHP)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=idSousMenuTH1
    • > Warning in wp-content/plugins/eewee-popup/controllers/EeweePopup.php+58
    Use of undefined constant sousMenu1 - assumed 'sousMenu1' (this will throw an Error in a future version of PHP)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=idSousMenuTH1
    • > Warning in wp-content/plugins/eewee-popup/controllers/EeweePopup.php+59
    Use of undefined constant sousMenu2 - assumed 'sousMenu2' (this will throw an Error in a future version of PHP)

SRP 0% 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
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/eewee-popup/view/manual.php
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/eewee-popup/index.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'form_add_popup' not found in wp-content/plugins/eewee-popup/view/popup.php:19
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/eewee-popup/index.php on line 18
    • > PHP Warning
      Use of undefined constant EeweePopup - assumed 'EeweePopup' (this will throw an Error in a future version of PHP) in wp-content/plugins/eewee-popup/controllers/EeweePopup.php on line 2

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=idSousMenuTH1
    • > Network (severe)
    wp-content/plugins/eewee_popup/css/style.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (Image and Text and Border 3px and color blue.)
You can take inspiration from this readme.txt

eewee-popup/index.php 92% from 13 tests

"eewee popup" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("eewee-popup.php" instead of "index.php")

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 plugin426 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP592143328
PO File15814263
CSS10435

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity9.00
▷ Minimum class complexity3.00
▷ Maximum class complexity15.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/icon.png0.75KB0.96KB0.00%
img/close_pop.png2.65KB1.87KB▼ 29.73%