10% areyoupop-playpops

Code Review | Areyoupop Playpops Lite

WordPress plugin Areyoupop Playpops Lite scored10%from 54 tests.

About plugin

  • Plugin page: areyoupop-playpops
  • Plugin version: 2.0.2 lite...
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Aug 15, 2015
  • Latest release: Aug 19, 2015
  • Number of updates: 13
  • Update frequency: every 9.1 days
  • Top authors: vanleurth (84.62%)Otto42 (23.08%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /850 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
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/areyoupop-playpops/classes/settings.php+469
    Function create_function() is deprecated

Server metrics [RAM: ▼1.87MB] [CPU: ▼57.01ms] Passed 4 tests

This is a short check of server-side resources used by Areyoupop Playpops Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.12 ▼1.345.39 ▼45.82
Dashboard /wp-admin2.14 ▼1.178.60 ▼44.04
Posts /wp-admin/edit.php2.14 ▼1.227.01 ▼46.77
Add New Post /wp-admin/post-new.php2.14 ▼3.756.35 ▼91.40
Media Library /wp-admin/upload.php2.14 ▼1.096.04 ▼28.27
PlayPops for WordPress /wp-admin/options-general.php?page=playpops_plugin_options2.146.05

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options
playpops_general_settings
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Areyoupop Playpops Lite: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲13014.62 ▲0.2490.92 ▲89.1944.18 ▲0.34
Dashboard /wp-admin2,249 ▲495.11 ▼0.71112.50 ▼3.2844.94 ▲1.79
Posts /wp-admin/edit.php2,136 ▲362.45 ▲0.4342.05 ▲5.9437.22 ▲0.51
Add New Post /wp-admin/post-new.php6,303 ▲4,77226.28 ▲2.93942.94 ▲268.8241.46 ▼22.14
Media Library /wp-admin/upload.php1,434 ▲404.46 ▲0.2296.79 ▼7.7244.21 ▼2.57
PlayPops for WordPress /wp-admin/options-general.php?page=playpops_plugin_options1,0392.4341.5631.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/areyoupop-playpops/classes/settings.php+469
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • playpops_general_settings

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=playpops_plugin_options
    • > Deprecated in wp-content/plugins/areyoupop-playpops/classes/settings.php+469
    Function create_function() is deprecated
    • > GET request to /wp-admin/options-general.php?page=playpops_plugin_options
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=playpops_plugin_options
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/areyoupop-playpops/classes/settings.php:469
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/areyoupop-playpops/classes/settings.php:469
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/areyoupop-playpops/classes/playpops_meta.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed: You can look at the official readme.txt

areyoupop-playpops/playpops.php 85% from 13 tests

"Areyoupop Playpops Lite" version 2.0.2 lite...'s main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "2.0.2 lite...")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("areyoupop-playpops.php" instead of "playpops.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,090 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP3748310717
JavaScript3113100205
CSS12112105
XML90063

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity23.67
▷ Minimum class complexity8.00
▷ Maximum class complexity42.00
Average method complexity2.66
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods41
▷ Static methods24.88%
▷ Public methods4097.56%
▷ Protected methods00.00%
▷ Private methods12.44%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
11 PNG files occupy 0.19MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/digg.png4.04KB2.04KB▼ 49.49%
images/pinterest.png6.03KB3.13KB▼ 48.07%
images/google-plus.png5.98KB2.93KB▼ 50.93%
images/close.png144.45KB40.46KB▼ 71.99%
images/linkedin.png4.12KB2.58KB▼ 37.38%