84% link-to-popup

Code Review | Link to Popup

WordPress plugin Link to Popup scored84%from 54 tests.

About plugin

  • Plugin page: link-to-popup
  • Plugin version: 1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.4
  • WordPress version: 6.3.1
  • First release: Apr 16, 2020
  • Latest release: Apr 17, 2020
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: sandirosyandi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /423 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼1.93ms] Passed 4 tests

Server-side resources used by Link to Popup
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0638.88 ▼4.40
Dashboard /wp-admin3.40 ▲0.0564.34 ▲11.97
Posts /wp-admin/edit.php3.51 ▲0.1149.07 ▼0.86
Add New Post /wp-admin/post-new.php6.00 ▲0.0788.66 ▼5.65
Media Library /wp-admin/upload.php3.32 ▲0.0540.57 ▲3.18
Link to Popup /wp-admin/options-general.php?page=link-to-popup-setting3.2929.35

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
link_to_popup_selectors
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Link to Popup
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲12413.48 ▼1.2311.58 ▲9.7940.29 ▼3.88
Dashboard /wp-admin2,197 ▲205.57 ▼0.0487.06 ▼2.7038.09 ▼2.73
Posts /wp-admin/edit.php2,108 ▲52.02 ▲0.0141.56 ▲1.5536.53 ▲1.96
Add New Post /wp-admin/post-new.php1,536 ▲1023.12 ▼0.11629.62 ▼96.0157.74 ▲1.96
Media Library /wp-admin/upload.php1,411 ▲114.17 ▼0.1498.06 ▼5.0441.56 ▼3.02
Link to Popup /wp-admin/options-general.php?page=link-to-popup-setting8582.1726.0425.71

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • 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)
Even though everything seems fine, this is not 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/link-to-popup/link-to-popup.php:18

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: link, popup

link-to-popup/link-to-popup.php Passed 13 tests

The principal PHP file in "Link to Popup" v. 1.0 is loaded by WordPress automatically on each request
51 characters long description:
Transform your regular link to popup automatically.

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
Success! There were no dangerous files found in this plugin376 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP1268225
JavaScript363106
CSS28045

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin