10% popupthis

Code Review | PopupThis

WordPress plugin PopupThis scored 10% from 54 tests.

About plugin

  • Plugin page: popupthis
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.0
  • WordPress version: 6.3.1
  • First release: Jun 4, 2013
  • Latest release: Jun 4, 2013
  • Number of updates: 2
  • Update frequency: every 14.0 days
  • Top authors: xhacky (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 1,635 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/popupthis/popupThis.php+25
    Methods with the same name as their class will not be constructors in a future version of PHP; popupThis has a deprecated constructor

Server metrics [RAM: ▼1.96MB] [CPU: ▼59.75ms] Passed 4 tests

A check of server-side resources used by PopupThis
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.436.03 ▼34.29
Dashboard /wp-admin2.05 ▼1.265.85 ▼47.36
Posts /wp-admin/edit.php2.05 ▼1.315.70 ▼59.71
Add New Post /wp-admin/post-new.php2.05 ▼3.846.12 ▼97.64
Media Library /wp-admin/upload.php2.05 ▼1.185.71 ▼30.08

Server storage [IO: ▲0.08MB] [DB: ▲0.33MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by PopupThis
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,941 ▲15213.84 ▲0.648.26 ▲6.4142.57 ▲2.81
Dashboard /wp-admin2,208 ▼14.88 ▼0.99108.03 ▼2.5242.85 ▲0.85
Posts /wp-admin/edit.php2,094 ▲22.01 ▼0.0239.31 ▼1.1835.51 ▲0.94
Add New Post /wp-admin/post-new.php1,530 ▲1623.24 ▲5.55601.34 ▼33.0957.31 ▲3.47
Media Library /wp-admin/upload.php1,390 ▲24.26 ▲0.04105.76 ▲8.7144.60 ▲2.80

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the PopupthisCSS handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

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
Even though no errors were found, this is by no means 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/popupthis/popupThis.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: popup, fancybox, lighbox

popupthis/popupThis.php 92% from 13 tests

"PopupThis" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("popupthis.php" instead of "popupThis.php")

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
No dangerous file extensions were detected442 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS15412306
JavaScript3111878
PHP1222049
Markdown1609

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
20 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/fancy_loading.png9.96KB6.30KB▼ 36.67%
img/fancybox-y.png0.17KB0.24KB0.00%
img/fancy_shadow_ne.png0.34KB0.48KB0.00%
img/fancy_title_main.png0.09KB0.14KB0.00%
img/fancy_shadow_e.png0.10KB0.18KB0.00%