89% fix-google-newsstand-missing-images

Code Review | Fix Google Newsstand Missing Images

WordPress plugin Fix Google Newsstand Missing Images scored89%from 54 tests.

About plugin

  • Plugin page: fix-google-newsst...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2.1
  • WordPress version: 6.3.1
  • First release: Jun 6, 2019
  • Latest release: Jun 6, 2019
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: abdobasha2004 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /652 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼8.45ms] Passed 4 tests

Server-side resources used by Fix Google Newsstand Missing Images
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.67 ▼2.10
Dashboard /wp-admin3.31 ▼0.0349.57 ▼19.45
Posts /wp-admin/edit.php3.36 ▲0.0148.62 ▼9.78
Add New Post /wp-admin/post-new.php5.89 ▲0.0195.90 ▼1.72
Media Library /wp-admin/upload.php3.23 ▲0.0035.22 ▼2.46

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Fix Google Newsstand Missing Images
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.67 ▲0.531.67 ▼0.5746.33 ▲3.48
Dashboard /wp-admin2,203 ▲125.76 ▲0.89103.19 ▲1.4542.69 ▼2.11
Posts /wp-admin/edit.php2,089 ▼32.03 ▼0.0235.93 ▼4.9234.15 ▼3.15
Add New Post /wp-admin/post-new.php1,542 ▲1118.17 ▼4.63607.83 ▲9.7354.89 ▼3.77
Media Library /wp-admin/upload.php1,388 ▼34.20 ▲0.0294.56 ▼8.9244.81 ▼4.49

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (/assets/screenshot.png), #2 (/assets/screenshot2.png), #3 (/assets/screenshot3.png), #4 (/assets/screenshot4.png)
You can take inspiration from this readme.txt

fix-google-newsstand-missing-images/Google-Newsstand-Missing Images-error-fix.php 85% from 13 tests

Analyzing the main PHP file in "Fix Google Newsstand Missing Images" version 1.0
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 260 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("fix-google-newsstand-missing-images.php" instead of "Google-Newsstand-Missing Images-error-fix.php")

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
Everything looks great! No dangerous files found in this plugin10 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13810

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.20
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%
Functions1
▷ Named functions1100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 1.60MB with 1.10MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot.png439.09KB152.94KB▼ 65.17%
assets/screenshot3.png318.79KB89.08KB▼ 72.06%
assets/screenshot2.png484.69KB163.81KB▼ 66.20%
assets/screenshot4.png392.48KB112.24KB▼ 71.40%