77% post-tiles

Code Review | Post Tiles

WordPress plugin Post Tiles scored77%from 54 tests.

About plugin

  • Plugin page: post-tiles
  • Plugin version: 1.4.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0.0
  • WordPress version: 6.3.1
  • First release: Dec 30, 2011
  • Latest release: Nov 23, 2014
  • Number of updates: 89
  • Update frequency: every 11.9 days
  • Top authors: ethanhackett (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

700+ active /35,403 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.38ms] Passed 4 tests

Server-side resources used by Post Tiles
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.75 ▼4.04
Dashboard /wp-admin3.32 ▲0.0149.15 ▼7.13
Posts /wp-admin/edit.php3.37 ▲0.0151.23 ▲4.06
Add New Post /wp-admin/post-new.php5.90 ▲0.0290.69 ▼5.10
Media Library /wp-admin/upload.php3.25 ▲0.0235.44 ▼1.26
Post Tiles /wp-admin/options-general.php?page=post-tiles-identifier3.2238.06

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Post Tiles
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6413.25 ▼1.411.70 ▼0.3541.35 ▼7.67
Dashboard /wp-admin2,210 ▲225.81 ▲0.9397.43 ▼19.7441.44 ▼2.42
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0232.50 ▼2.8335.61 ▲1.11
Add New Post /wp-admin/post-new.php1,523 ▼1023.12 ▼0.26622.14 ▼45.2956.81 ▼9.53
Media Library /wp-admin/upload.php1,392 ▲44.26 ▲0.1298.86 ▼18.5243.52 ▼4.08
Post Tiles /wp-admin/options-general.php?page=post-tiles-identifier1,3802.2830.5391.04

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/post-tiles/post-tiles.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=post-tiles-identifier
    • > Network (severe)
    http://www.postslides.com/wp-content/uploads/2014/11/slides-compressed.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=post-tiles-identifier
    • > Network (severe)
    http://www.postslides.com/wp-content/uploads/2014/11/slide-hover.gif - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Full Width Tiles), #2 (Medium Width Tiles), #3 (Mobile Width Titles), #4 (Color and layout customization), #5 (Additional customization)
Please take inspiration from this readme.txt

post-tiles/post-tiles.php 85% from 13 tests

Analyzing the main PHP file in "Post Tiles" version 1.4.6
Please make the necessary changes and fix the following:
  • Git Repository: Please remove the Git repository from this plugin
  • Description: Please keep the plugin description shorter than 140 characters (currently 204 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected949 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP184126508
CSS12110330
JavaScript22349111

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions7
▷ Named functions7100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.81MB with 0.57MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
plus@2x.png3.57KB1.04KB▼ 70.72%
screenshot-4.png120.82KB37.94KB▼ 68.60%
screenshot-2.png276.48KB93.22KB▼ 66.28%
plus.png3.12KB0.68KB▼ 78.29%
screenshot-3.png145.36KB50.15KB▼ 65.50%