83% tied-pages

Code Review | Tied Pages

WordPress plugin Tied Pages scored83%from 54 tests.

About plugin

  • Plugin page: tied-pages
  • Plugin version: 0.2.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.7
  • WordPress version: 6.3.1
  • First release: Feb 24, 2021
  • Latest release: Apr 27, 2021
  • Number of updates: 7
  • Update frequency: every 11.7 days
  • Top authors: pictureplanet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /342 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼6.47ms] Passed 4 tests

Analyzing server-side resources used by Tied Pages
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0842.66 ▼2.39
Dashboard /wp-admin3.38 ▲0.0754.55 ▲2.87
Posts /wp-admin/edit.php3.49 ▲0.1348.50 ▼2.78
Add New Post /wp-admin/post-new.php5.98 ▲0.0990.29 ▼16.39
Media Library /wp-admin/upload.php3.30 ▲0.0735.52 ▼4.31

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Tied Pages
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.22 ▼1.002.07 ▲0.2044.85 ▼5.45
Dashboard /wp-admin2,210 ▲225.83 ▲0.01111.21 ▼3.1543.68 ▼5.67
Posts /wp-admin/edit.php2,093 ▲12.05 ▼0.0139.76 ▲0.8237.03 ▲2.18
Add New Post /wp-admin/post-new.php1,527 ▼717.69 ▼5.67695.76 ▼20.5141.22 ▼19.39
Media Library /wp-admin/upload.php1,395 ▲74.21 ▲0.01105.62 ▲0.3746.14 ▲2.06

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'tied_pages\\Tiedpages_Base' not found in wp-content/plugins/tied-pages/includes/admin_page_edit_class.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function tied_pages\\register_activation_hook() in wp-content/plugins/tied-pages/tied-pages.php:34
    • > PHP Fatal error
      Uncaught Error: Class 'tied_pages\\Tiedpages_Base' not found in wp-content/plugins/tied-pages/includes/core_controller_class.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (This screenshot description corresponds to screenshot-1.png (stored in /assets). In this screenshot you can see the Tied-Pages menu through which you tie pages.)
You can take inspiration from this readme.txt

tied-pages/tied-pages.php 85% from 13 tests

The primary PHP file in "Tied Pages" version 0.2.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 150 characters long)
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
Success! There were no dangerous files found in this plugin434 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP4107134327
JavaScript2194104
CSS1003

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity13.50
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity3.63
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes125.00%
▷ Concrete classes375.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1368.42%
▷ Protected methods421.05%
▷ Private methods210.53%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
(invalid) assets/screenshot-1.png18.08KB0.00KB▼ 100.00%