83% ampry-pixel

Code Review | Ampry - Create Popups, Notifications, Sticky bars & more

WordPress plugin Ampry - Create Popups, Notifications, Sticky bars & more scored83%from 54 tests.

About plugin

  • Plugin page: ampry-pixel
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 6.3.1
  • First release: Jan 18, 2021
  • Latest release: Jan 21, 2021
  • Number of updates: 4
  • Update frequency: every 2.0 days
  • Top authors: innovationexchange (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /454 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.02MB] [CPU: ▼7.84ms] Passed 4 tests

A check of server-side resources used by Ampry - Create Popups, Notifications, Sticky bars & more
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.41 ▼17.43
Dashboard /wp-admin3.32 ▲0.0246.96 ▼1.92
Posts /wp-admin/edit.php3.37 ▲0.0252.26 ▲2.00
Add New Post /wp-admin/post-new.php5.90 ▲0.0289.73 ▼11.73
Media Library /wp-admin/upload.php3.24 ▲0.0236.40 ▼0.26
Ampry Pixel /wp-admin/options-general.php?page=ampry-pixel/ampry-pixel.php3.2130.10

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ampry - Create Popups, Notifications, Sticky bars & more
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲3313.35 ▼1.031.71 ▼0.9940.25 ▼13.26
Dashboard /wp-admin2,228 ▲254.81 ▼0.08110.09 ▲0.2748.66 ▲7.82
Posts /wp-admin/edit.php2,104 ▲11.99 ▼0.0339.39 ▼0.5840.50 ▲4.57
Add New Post /wp-admin/post-new.php1,529 ▼2517.67 ▼0.34707.64 ▲76.1160.12 ▲6.56
Media Library /wp-admin/upload.php1,407 ▲74.28 ▲0.04104.99 ▲0.6542.69 ▼3.44
Ampry Pixel /wp-admin/options-general.php?page=ampry-pixel/ampry-pixel.php8672.0226.8931.77

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ampry-pixel/inc/options.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ampry-pixel/inc/sidebar.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ampry-pixel/ampry-pixel.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (Add your site domain in Ampry to create your first campaign.(https://d33v4339jhl8k0.cloudfront.net/docs/assets/5c9be06a0428633d2cf4240e/images/5e7242ed04286364bc96e1e5/file-yGoH0VqCYc.png)), #2 (Choose what type of placement you want to have on your site.(https://d33v4339jhl8k0.cloudfront.net/docs/assets/5c9be06a0428633d2cf4240e/images/5f29a03504286342d763bdcd/file-hVtvm9fTi2.png)), #3 (Choose what web pages you want your new placement to show on.(https://d33v4339jhl8k0.cloudfront.net/docs/assets/5c9be06a0428633d2cf4240e/images/5f29a12404286342d763bdd8/file-zG2REiMS2Q.png)), #4 (Select the template you want to use for your new placement.(https://d33v4339jhl8k0.cloudfront.net/docs/assets/5c9be06a0428633d2cf4240e/images/5f29a6ea04286342d763be98/file-40aho39eyf.png)), #5 (Add your content images and text to the template.(https://d33v4339jhl8k0.cloudfront.net/docs/assets/5c9be06a0428633d2cf4240e/images/5f29a83004286342d763beae/file-U3I0BmJMq2.png)), #6 (Place your Ampry pixel in your WordPress account.(https://gyazo.com/50de7db3e8b922bc200838035ad00deb)), #7 (Watch your leads, purchases, and conversions come in!(https://gyazo.com/d344fee60ac34f8bc3f7e9537a48e572))
Please take inspiration from this readme.txt

ampry-pixel/ampry-pixel.php 92% from 13 tests

The main file in "Ampry - Create Popups, Notifications, Sticky bars & more" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 142 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin89 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3232489

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin