78% post-size-text-changer

Code Review | Post size text changer

WordPress plugin Post size text changer scored 78% from 54 tests.

About plugin

  • Plugin page: post-size-text-ch...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.2-3.4.2
  • WordPress version: 6.3.1
  • First release: Nov 29, 2012
  • Latest release: Nov 29, 2012
  • Number of updates: 5
  • Update frequency: every 44.2 days
  • Top authors: TrueFalse (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 4,344 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▲1.35ms] Passed 4 tests

An overview of server-side resources used by Post size text changer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.15 ▼5.02
Dashboard /wp-admin3.33 ▲0.0247.26 ▼0.69
Posts /wp-admin/edit.php3.38 ▲0.0251.64 ▲5.43
Add New Post /wp-admin/post-new.php5.91 ▲0.0298.83 ▲12.36
Media Library /wp-admin/upload.php3.25 ▲0.0237.98 ▲5.68

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Post size text changer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲15013.99 ▼0.695.30 ▲3.3939.87 ▼5.51
Dashboard /wp-admin2,213 ▲254.88 ▲0.02107.65 ▼10.1341.13 ▼5.26
Posts /wp-admin/edit.php2,093 ▲42.03 ▼0.0139.20 ▲2.2734.45 ▼1.04
Add New Post /wp-admin/post-new.php1,517 ▲317.46 ▼0.06632.69 ▼39.3563.43 ▼0.99
Media Library /wp-admin/upload.php1,395 ▲104.22 ▼0.0898.82 ▼3.3142.07 ▼0.63
Post size text changer /wp-admin/post-size-text-changer.php260.440.1213.70

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/post-size-text-changer/ptsc.php:15

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/post-size-text-changer.php
    • > Network (severe)
    wp-admin/post-size-text-changer.php - 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 uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (This page posts.), #2 (This administration page.)
You can take inspiration from this readme.txt

post-size-text-changer/ptsc.php 85% from 13 tests

The primary PHP file in "Post size text changer" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("post-size-text-changer.php" instead of "ptsc.php")

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
No dangerous file extensions were detected115 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2112267
PO File15726
JavaScript101122

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.06MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png16.56KB16.09KB▼ 2.84%
screenshot-1.png46.81KB45.95KB▼ 1.83%