84% personal-library

Code Review | Personal Library

WordPress plugin Personal Library scored84%from 54 tests.

About plugin

  • Plugin page: personal-library
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.0-4.4
  • WordPress version: 6.3.1
  • First release: Dec 14, 2015
  • Latest release: Dec 12, 2015
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: derekheld (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /929 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: ▼0.93ms] Passed 4 tests

An overview of server-side resources used by Personal Library
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.34 ▼0.59
Dashboard /wp-admin3.33 ▲0.0246.12 ▼2.30
Posts /wp-admin/edit.php3.38 ▲0.0247.98 ▲3.91
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.78 ▲5.10
Media Library /wp-admin/upload.php3.25 ▲0.0233.66 ▼4.74
Personal Library /wp-admin/options-general.php?page=personal-library3.2130.62

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Personal Library
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.67 ▼0.991.72 ▼0.1140.37 ▼5.36
Dashboard /wp-admin2,210 ▲194.83 ▼1.07107.45 ▲6.7041.72 ▲1.67
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0341.12 ▲5.2535.63 ▼1.81
Add New Post /wp-admin/post-new.php1,540 ▲318.48 ▼4.78600.59 ▲0.8855.49 ▼1.92
Media Library /wp-admin/upload.php1,392 ▲104.26 ▲0.0499.77 ▼0.2244.89 ▲2.11
Personal Library /wp-admin/options-general.php?page=personal-library7772.0622.1025.41

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/personal-library/personal-library.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: attachments, personal, unique, filter, roles...

personal-library/personal-library.php Passed 13 tests

"Personal Library" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
61 characters long description:
Restricts users to managing/using their own attachments only.

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
Success! There were no dangerous files found in this plugin52 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1132352

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions8
▷ Named functions8100.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