83% page2images-visual-link

Code Review | Page2Images Visual Link

WordPress plugin Page2Images Visual Link scored83%from 54 tests.

About plugin

  • Plugin page: page2images-visua...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Feb 25, 2014
  • Latest release: Feb 25, 2014
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: SuzhouKada (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,458 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.80ms] Passed 4 tests

Analyzing server-side resources used by Page2Images Visual Link
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.53 ▼1.86
Dashboard /wp-admin3.31 ▲0.0153.46 ▼4.39
Posts /wp-admin/edit.php3.36 ▲0.0054.67 ▲0.01
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.52 ▼12.97
Media Library /wp-admin/upload.php3.24 ▲0.0038.43 ▲0.97

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Page2Images Visual Link
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,853 ▲6714.30 ▼0.233.31 ▲1.3745.29 ▲3.08
Dashboard /wp-admin2,195 ▲155.52 ▼0.0194.29 ▲4.5043.69 ▼0.41
Posts /wp-admin/edit.php2,097 ▼32.02 ▲0.0333.92 ▼11.6435.23 ▼2.96
Add New Post /wp-admin/post-new.php1,531 ▲523.31 ▼0.45645.78 ▼38.1852.88 ▼2.95
Media Library /wp-admin/upload.php1,394 ▼34.19 ▲0.0197.47 ▼25.6644.20 ▼13.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

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)
Good news, no errors were detected

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/page2images-visual-link/page2images_visual_link.php:21

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, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === page2images-visual-link === )
  • Screenshots: These screenshots require images: #1 (DEMO1), #2 (DEMO2), #3 (DEMO3)
You can look at the official readme.txt

page2images-visual-link/page2images_visual_link.php 92% from 13 tests

Analyzing the main PHP file in "Page2Images Visual Link" version 1.0.0
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("page2images-visual-link.php" instead of "page2images_visual_link.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin145 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript11023125
PHP181520

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png73.39KB25.76KB▼ 64.90%
screenshot-2.png39.09KB18.66KB▼ 52.28%
screenshot-3.png46.77KB22.25KB▼ 52.44%