78% wp-isotope

Code Review | WP Isotope

WordPress plugin WP Isotope scored78%from 54 tests.

About plugin

  • Plugin page: wp-isotope
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Nov 25, 2016
  • Latest release: Nov 25, 2016
  • Number of updates: 6
  • Update frequency: every 0.7 days
  • Top authors: imtiaz.protik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,320 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼9.12ms] Passed 4 tests

Server-side resources used by WP Isotope
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.32 ▲3.55
Dashboard /wp-admin3.36 ▲0.0145.08 ▼13.21
Posts /wp-admin/edit.php3.41 ▲0.0548.65 ▼4.35
Add New Post /wp-admin/post-new.php5.94 ▲0.0585.43 ▼15.27
Media Library /wp-admin/upload.php3.28 ▲0.0535.27 ▼3.66
Add New Isotop /wp-admin/post-new.php?post_type=sp_magic_isotop3.3449.74
Categorys /wp-admin/edit-tags.php?taxonomy=sp_isotop_cat&post_type=sp_magic_isotop3.2734.29
Istops /wp-admin/edit.php?post_type=sp_magic_isotop3.3235.27

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Isotope
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,946 ▲20013.70 ▼1.078.76 ▲7.1250.18 ▲9.89
Dashboard /wp-admin2,237 ▲495.87 ▼0.0399.95 ▼3.7938.09 ▼3.69
Posts /wp-admin/edit.php2,120 ▲312.01 ▲0.0040.89 ▲6.2034.98 ▲0.40
Add New Post /wp-admin/post-new.php1,568 ▲4923.30 ▲0.14678.54 ▲4.4753.35 ▼1.93
Media Library /wp-admin/upload.php1,422 ▲344.31 ▲0.0794.06 ▼1.2843.79 ▼3.98
Add New Isotop /wp-admin/post-new.php?post_type=sp_magic_isotop1,7013.7663.3730.39
Categorys /wp-admin/edit-tags.php?taxonomy=sp_isotop_cat&post_type=sp_magic_isotop1,2652.1426.8227.57
Istops /wp-admin/edit.php?post_type=sp_magic_isotop1,0811.9830.3229.84

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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 return non-empty strings:
    • > /wp-content/plugins/wp-isotope/wp_istop.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-isotope/inc/wp_istop_supports.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-isotope/inc/wp_istop_shortcodes.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-isotope/inc/wp_istop_files.php:4

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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:
  • Screenshots: These screenshots require images: #1 (Forums - Admin Interface), #2 (Topics - Admin Interface), #3 (Replies - Admin Interface), #4 (Settings - Admin Interface), #5 (Settings 2 - Admin Interface), #6 (Themes - Admin Interface), #7 (Single Forum - Default Theme)
You can take inspiration from this readme.txt

wp-isotope/wp_istop.php 92% from 13 tests

The primary PHP file in "WP Isotope" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-isotope.php" instead of "wp_istop.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin263 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP57433149
CSS2283870
JavaScript2101744

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions3
▷ Named functions3100.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
5 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/i3.png9.36KB4.75KB▼ 49.27%
img/i2.png25.48KB10.03KB▼ 60.63%
img/i4.png31.19KB7.95KB▼ 74.53%
img/i1.png7.09KB3.43KB▼ 51.68%
img/i5.png21.62KB5.99KB▼ 72.28%