89% pebo-masonry-free

Code Review | PEBO Free Masonry with Hover effects

WordPress plugin PEBO Free Masonry with Hover effects scored89%from 54 tests.

About plugin

  • Plugin page: pebo-masonry-free
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Mar 12, 2017
  • Latest release: Mar 17, 2017
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: pebopro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,304 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼14.02ms] Passed 4 tests

Analyzing server-side resources used by PEBO Free Masonry with Hover effects
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.63 ▼0.19
Dashboard /wp-admin3.35 ▼0.0051.06 ▼14.24
Posts /wp-admin/edit.php3.40 ▲0.0450.94 ▼4.86
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.93 ▼36.79
Media Library /wp-admin/upload.php3.27 ▲0.0437.15 ▲0.89

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options
widget_pebo_hover_masonry_widget_free
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for PEBO Free Masonry with Hover effects
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.38 ▼0.181.80 ▲0.1343.38 ▼3.74
Dashboard /wp-admin2,195 ▲215.61 ▼0.1396.64 ▲1.5843.09 ▼2.07
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0339.12 ▼5.6736.30 ▲0.50
Add New Post /wp-admin/post-new.php1,547 ▲222.86 ▼0.27661.89 ▲2.7556.93 ▲0.19
Media Library /wp-admin/upload.php1,403 ▲34.15 ▲0.05107.68 ▼14.6448.45 ▼4.96

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_pebo_hover_masonry_widget_free

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === pebo-masonry-free === )
You can look at the official readme.txt

pebo-masonry-free/peboMasoneryWidgetFree.php 92% from 13 tests

"PEBO Free Masonry with Hover effects" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pebo-masonry-free.php" instead of "peboMasoneryWidgetFree.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,798 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS3149351,085
SVG500568
PHP12148144
JavaScript2031

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity5.25
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin