68% wp-snap-extended

Code Review | WP-SNAP EXT!

WordPress plugin WP-SNAP EXT! scored68%from 54 tests.

About plugin

  • Plugin page: wp-snap-extended
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4.1
  • WordPress version: 6.3.1
  • First release: Oct 25, 2012
  • Latest release: Nov 5, 2012
  • Number of updates: 11
  • Update frequency: every 7.9 days
  • Top authors: mansoormunib (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /4,293 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼1.08MB] [CPU: ▼46.68ms] Passed 4 tests

This is a short check of server-side resources used by WP-SNAP EXT!
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.90 ▼0.5618.33 ▼25.36
Dashboard /wp-admin2.94 ▼0.4116.04 ▼43.80
Posts /wp-admin/edit.php2.94 ▼0.4218.08 ▼31.73
Add New Post /wp-admin/post-new.php2.94 ▼2.9517.72 ▼85.84
Media Library /wp-admin/upload.php2.94 ▼0.2915.52 ▼18.43

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 16 new options
New WordPress options
widget_recent-comments
key_snap_menu
key_snap_alphabet
db_upgraded
key_snap_fancyurlname
widget_theysaidso_widget
key_snap_csscls2
key_snap_menumisc
key_snap_exclude
theysaidso_admin_options
...

Browser metrics Passed 4 tests

A check of browser resources used by WP-SNAP EXT!
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲6013.37 ▼0.932.12 ▼0.5143.43 ▼4.23
Dashboard /wp-admin2,213 ▲225.85 ▼0.05104.60 ▲1.5339.30 ▼3.12
Posts /wp-admin/edit.php2,096 ▲42.06 ▲0.0635.01 ▼5.6735.73 ▼1.83
Add New Post /wp-admin/post-new.php1,538 ▲522.92 ▼0.34657.79 ▲45.9759.28 ▲13.47
Media Library /wp-admin/upload.php1,392 ▲44.25 ▲0.0497.68 ▼3.9741.22 ▼2.50
WP-SNAP Ext! /wp-admin/wp-snap.php260.440.0815.09

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
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5747
    Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
  • Zombie WordPress options were found after uninstall: 16 options
    • theysaidso_admin_options
    • key_snap_fancyurlname
    • key_snap_menumisc
    • key_snap_csscls2
    • key_snap_alphabet
    • widget_recent-posts
    • widget_recent-comments
    • key_snap_exclude
    • key_snap_fancyurl
    • db_upgraded
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_option() in wp-content/plugins/wp-snap-extended/wp-snap.php:39

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/wp-snap.php
    • > Network (severe)
    wp-admin/wp-snap.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can look at the official readme.txt

wp-snap-extended/wp-snap.php 92% from 13 tests

"WP-SNAP EXT!" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-snap-extended.php" instead of "wp-snap.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected769 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP18945732
CSS13037

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
Please fix the following
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 104)
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity106.00
▷ Minimum class complexity106.00
▷ Maximum class complexity106.00
Average method complexity53.50
▷ Minimum method complexity3.00
▷ Maximum method complexity104.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 files were detected