10% list-my-posts

Code Review | List My Posts

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

About plugin

  • Plugin page: list-my-posts
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.7.1
  • WordPress version: 5.8.1
  • First release: Nov 3, 2013
  • Latest release: Nov 4, 2013
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: silvercover (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,011 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/list-my-posts/wp-listmyposts.php+38
    Constant WP_CONTENT_URL already defined

Server metrics [RAM: ▼1.58MB] [CPU: ▼188.56ms] Passed 4 tests

Analyzing server-side resources used by List My Posts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼0.676.14 ▼17.79
Dashboard /wp-admin2.06 ▼0.996.94 ▼39.47
Posts /wp-admin/edit.php2.07 ▼1.049.65 ▼38.36
Add New Post /wp-admin/post-new.php2.06 ▼3.379.11 ▼645.53
Media Library /wp-admin/upload.php2.06 ▼0.946.83 ▼30.88

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 43 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for List My Posts
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,728 ▲15616.15 ▲0.5312.09 ▲0.4155.45 ▲2.82
Dashboard /wp-admin3,014 ▲836.75 ▲0.61159.56 ▼46.03112.92 ▼13.28
Posts /wp-admin/edit.php2,790 ▲542.76 ▲0.0579.08 ▲4.8298.88 ▲0.79
Add New Post /wp-admin/post-new.php1,717 ▲3418.81 ▲0.50420.15 ▲2.08142.54 ▲23.66
Media Library /wp-admin/upload.php1,795 ▲625.14 ▲0.14153.53 ▼19.45130.16 ▲7.79

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/list-my-posts/wp-listmyposts.php+38
    Constant WP_CONTENT_URL already defined

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/list-my-posts/wp-listmyposts.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Options page.) image required
You can take inspiration from this readme.txt

list-my-posts/wp-listmyposts.php 92% from 13 tests

Analyzing the main PHP file in "List My Posts" version 1.0
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("list-my-posts.php" instead of "wp-listmyposts.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
Everything looks great! No dangerous files found in this plugin684 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15347574
PO File14756110

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
30 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/wp-localize-banner-ad.png8.26KB7.79KB▼ 5.77%
styles/icons/tick-circle-frame.png0.88KB0.81KB▼ 8.19%
styles/icons/bullet_user.png0.45KB0.47KB0.00%
styles/icons/shape_square_link.png0.66KB0.76KB0.00%
styles/icons/star-hot.png0.35KB0.24KB▼ 32.50%