90% picturebook

Code Review | PictureBook

WordPress plugin PictureBook scored90%from 54 tests.

About plugin

  • Plugin page: picturebook
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 14, 2010
  • Latest release: Feb 23, 2023
  • Number of updates: 16
  • Update frequency: every 311.3 days
  • Top authors: doc4 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,447 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.02MB] [CPU: ▼3.09ms] Passed 4 tests

This is a short check of server-side resources used by PictureBook
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.81 ▼1.88
Dashboard /wp-admin3.33 ▲0.0244.89 ▼6.68
Posts /wp-admin/edit.php3.38 ▲0.0248.23 ▲1.63
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.27 ▼2.69
Media Library /wp-admin/upload.php3.25 ▲0.0236.23 ▼1.12

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for PictureBook
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.21 ▼1.171.93 ▼0.0537.55 ▼5.29
Dashboard /wp-admin2,203 ▲145.80 ▲0.69106.41 ▼14.6339.97 ▼6.05
Posts /wp-admin/edit.php2,089 ▼02.18 ▲0.1339.42 ▲1.6635.64 ▲0.17
Add New Post /wp-admin/post-new.php1,542 ▲2318.30 ▼4.70618.80 ▼58.4954.11 ▼1.56
Media Library /wp-admin/upload.php1,382 ▼94.17 ▼0.0298.47 ▼1.5039.97 ▼1.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
7 plugin tags: blogroll images, links, bookmark images, blogroll titles, bookmarks...

picturebook/picturebook.php Passed 13 tests

The primary PHP file in "PictureBook" version 1.3 is used by WordPress to initiate all plugin functionality
53 characters long description:
Display your blogroll links with both text and images

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin109 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13825109

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin