78% wp-photo-montage

Code Review | WP Photo Montage

WordPress plugin WP Photo Montage scored78%from 54 tests.

About plugin

  • Plugin page: wp-photo-montage
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5+
  • WordPress version: 6.3.1
  • First release: Jan 5, 2015
  • Latest release: Jan 5, 2015
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: TWDRichard (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /833 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼8.92ms] Passed 4 tests

This is a short check of server-side resources used by WP Photo Montage
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.12 ▼10.29
Dashboard /wp-admin3.37 ▲0.0643.00 ▼5.08
Posts /wp-admin/edit.php3.48 ▲0.1246.52 ▼3.85
Add New Post /wp-admin/post-new.php5.95 ▲0.0682.91 ▼16.47
Media Library /wp-admin/upload.php3.29 ▲0.0635.81 ▲2.72
Photo Montage /wp-admin/options-general.php?page=wp_photo_montage3.2629.50

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP Photo Montage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.23 ▼1.164.52 ▲2.6242.32 ▼0.93
Dashboard /wp-admin2,210 ▲224.87 ▼1.01100.87 ▼8.3441.50 ▼4.34
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0336.45 ▼4.4333.31 ▼4.48
Add New Post /wp-admin/post-new.php1,517 ▼1817.57 ▼5.85662.81 ▼27.4258.12 ▲4.73
Media Library /wp-admin/upload.php1,389 ▲14.14 ▼0.0598.91 ▼2.1943.01 ▼0.78
Photo Montage /wp-admin/options-general.php?page=wp_photo_montage8002.0525.4624.88

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

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 take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-photo-montage/admin-menu.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-photo-montage/wp-photo-montage.php:31

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Sample photo montage.) image not found
You can take inspiration from this readme.txt

wp-photo-montage/wp-photo-montage.php Passed 13 tests

The entry point to "WP Photo Montage" version 1.0.0 is a PHP file that has certain tags in its header comment area
33 characters long description:
A WordPress photo montage creator

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected334 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26185334

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods416.67%
▷ Protected methods2083.33%
▷ Private methods00.00%
Functions0
▷ Named functions00.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 images were found in this plugin