10% my-post-list-with-offline-reading

Code Review | My Posts List with Offline Browsing

WordPress plugin My Posts List with Offline Browsing scored 10% from 54 tests.

About plugin

  • Plugin page: my-post-list-with...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5.1
  • WordPress version: 5.8.1
  • First release: Mar 19, 2013
  • Latest release: Jun 11, 2013
  • Number of updates: 38
  • Update frequency: every 2.2 days
  • Top authors: rioloft (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active / 3,707 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Parse error in wp-content/plugins/my-post-list-with-offline-reading/option-page.php+147
    syntax error, unexpected end of file

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

A check of server-side resources used by My Posts List with Offline Browsing
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.1234.28 ▲14.26
Dashboard /wp-admin3.06 ▲0.0045.39 ▼2.09
Posts /wp-admin/edit.php3.11 ▲0.0045.48 ▼0.77
Add New Post /wp-admin/post-new.php5.42 ▼0.0283.73 ▼578.51
Media Library /wp-admin/upload.php3.00 ▲0.0031.80 ▼2.16

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for My Posts List with Offline Browsing
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.85 ▲0.1711.55 ▲2.2244.58 ▼5.45
Dashboard /wp-admin2,973 ▲455.92 ▼0.32160.57 ▲17.33110.49 ▲2.78
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0173.29 ▲0.9985.93 ▼4.97
Add New Post /wp-admin/post-new.php1,683 ▼1,97018.75 ▼0.24429.55 ▼27.42106.51 ▲2.94
Media Library /wp-admin/upload.php1,807 ▼35.00 ▼0.04154.95 ▼2.23113.67 ▼7.58

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/my-post-list-with-offline-reading/mobile/query.php:18
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/my-post-list-with-offline-reading/option-page.php on line 147
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/my-post-list-with-offline-reading/mobile/query.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/my-post-list-with-offline-reading/email_post_list.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-post-list-with-offline-reading/my-posts-list.php:37

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 uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt is a good inspiration

my-post-list-with-offline-reading/my-posts-list.php 85% from 13 tests

This is the main PHP file of "My Posts List with Offline Browsing" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("my-post-list-with-offline-reading.php" instead of "my-posts-list.php")
  • Description: The description should be shorter than 140 characters (currently 178 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,164 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP525341461
JavaScript213333384
CSS28345319

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.49
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

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
mobile/images/touch-icon-iphone.png1.72KB1.94KB0.00%
img/close.png1.75KB0.61KB▼ 65.39%
img/star.png0.74KB0.67KB▼ 9.55%