78% wanna-isotope

Code Review | Wanna Isotope

WordPress plugin Wanna Isotope scored78%from 54 tests.

About plugin

  • Plugin page: wanna-isotope
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Aug 31, 2015
  • Latest release: Jul 20, 2016
  • Number of updates: 14
  • Update frequency: every 23.1 days
  • Top authors: jjmrestituto (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

300+ active /11,845 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.73ms] Passed 4 tests

This is a short check of server-side resources used by Wanna Isotope
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.63 ▼3.70
Dashboard /wp-admin3.36 ▲0.0651.45 ▼1.79
Posts /wp-admin/edit.php3.48 ▲0.1249.50 ▼1.69
Add New Post /wp-admin/post-new.php5.97 ▲0.0886.67 ▼11.70
Media Library /wp-admin/upload.php3.29 ▲0.0637.68 ▼1.71

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

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

Browser metrics Passed 4 tests

Wanna Isotope: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,904 ▲14313.43 ▼1.1210.63 ▲8.7843.40 ▼0.37
Dashboard /wp-admin2,202 ▲255.57 ▲0.0395.00 ▼11.0141.80 ▼1.00
Posts /wp-admin/edit.php2,104 ▲72.02 ▲0.0335.42 ▼1.2136.02 ▼0.02
Add New Post /wp-admin/post-new.php1,530 ▲223.15 ▼0.24671.86 ▼66.7758.96 ▲7.44
Media Library /wp-admin/upload.php1,401 ▲14.22 ▲0.13111.21 ▼8.0347.07 ▼2.40

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wanna-isotope/admin/partials/wanna-isotope-admin-display.php
    • > /wp-content/plugins/wanna-isotope/public/partials/wanna-isotope-public-display.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wanna-isotope/public/templates/loop.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === wanna-isotope === )
The official readme.txt is a good inspiration

wanna-isotope/wanna-isotope.php Passed 13 tests

"Wanna Isotope" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
58 characters long description:
A plugin to easily build Isotope Layouts with any content.

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 plugin687 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript485133320
PHP12145516295
CSS26472

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity3.83
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity1.68
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods1976.00%
▷ Protected methods00.00%
▷ Private methods624.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected