10% aklamator-popup

Code Review | Aklamator PopUp

WordPress plugin Aklamator PopUp scored10%from 54 tests.

About plugin

  • Plugin page: aklamator-popup
  • Plugin version: 2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.6
  • WordPress version: 6.3.1
  • First release: Sep 22, 2016
  • Latest release: Jul 3, 2018
  • Number of updates: 12
  • Update frequency: every 54.2 days
  • Top authors: aklamator (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,082 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method aklamatorPopWidget::set_up_options_popup() should not be called statically

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.55ms] Passed 4 tests

Analyzing server-side resources used by Aklamator PopUp
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1244.91 ▼0.35
Dashboard /wp-admin3.40 ▲0.0647.99 ▼14.46
Posts /wp-admin/edit.php3.52 ▲0.1645.28 ▼4.28
Add New Post /wp-admin/post-new.php5.98 ▲0.10118.90 ▲27.08
Media Library /wp-admin/upload.php3.33 ▲0.1036.05 ▼3.09

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 18 new options
New WordPress options
aklamatorPopupWidgets
aklamatorPopPoweredBy
can_compress_scripts
aklamatorPopFeatured2Feed
aklamatorPopApplicationID
widget_theysaidso_widget
aklamatorPopUpWidgetID
db_upgraded
aklamatorPopSingleWidgetTitle
aklamatorPopSingleWidgetID
...

Browser metrics Passed 4 tests

A check of browser resources used by Aklamator PopUp
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲7313.38 ▼1.432.93 ▲1.0539.95 ▼3.55
Dashboard /wp-admin2,239 ▲364.92 ▼0.8997.89 ▼14.4375.57 ▲31.17
Posts /wp-admin/edit.php2,112 ▲121.98 ▼0.0734.77 ▼2.8033.57 ▼3.77
Add New Post /wp-admin/post-new.php1,540 ▼823.05 ▼0.22754.42 ▲88.4456.27 ▼10.69
Media Library /wp-admin/upload.php1,412 ▲94.23 ▲0.0399.10 ▼2.2973.08 ▲29.55

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method aklamatorPopWidget::aklamatorPop_uninstall() should not be called statically
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_wp_widget_aklamatorpop
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/aklamator-popup/includes/class-widget-aklamator-popup.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/aklamator-popup/aklamator-popup.php:22
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/aklamator-popup/views/admin-page.php:6

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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 24 tag instead of maximum 10
  • Plugin Name: You should set the name of your plugin on the first line ( === aklamator-popup === )
You can look at the official readme.txt

aklamator-popup/aklamator-popup.php 92% from 13 tests

The principal PHP file in "Aklamator PopUp" v. 2.3 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 187 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected929 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP418977606
JavaScript2325229
CSS214394

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity20.50
▷ Minimum class complexity12.00
▷ Maximum class complexity29.00
Average method complexity2.10
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods14.55%
▷ Public methods2090.91%
▷ Protected methods00.00%
▷ Private methods29.09%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants3
▷ Global constants3100.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
8 PNG files occupy 0.35MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/promo-300x200.png77.36KB27.52KB▼ 64.43%
images/aklamator-icon.png0.62KB0.58KB▼ 6.27%
images/teaser-810x262.png279.89KB88.35KB▼ 68.43%
assets/dataTables/images/sort_desc.png1.10KB0.17KB▼ 84.15%
assets/dataTables/images/sort_asc_disabled.png1.09KB0.17KB▼ 84.66%