74% xgen-post-status

Code Review | xGen Post Status

WordPress plugin xGen Post Status scored74%from 54 tests.

About plugin

  • Plugin page: xgen-post-status
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.9.1
  • WordPress version: 6.3.1
  • First release: Oct 31, 2013
  • Latest release: May 24, 2014
  • Number of updates: 7
  • Update frequency: every 29.3 days
  • Top authors: xgensolutions (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /686 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.70MB] [CPU: ▼17.94ms] Passed 4 tests

A check of server-side resources used by xGen Post Status
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.95 ▲6.68
Dashboard /wp-admin3.32 ▼0.0352.15 ▼13.65
Posts /wp-admin/edit.php3.37 ▲0.0159.30 ▲9.47
Add New Post /wp-admin/post-new.php3.10 ▼2.7937.54 ▼67.66
Media Library /wp-admin/upload.php3.24 ▲0.0137.41 ▲2.89

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 18 new files
Database: 1 new table, 6 new options
New tables
wp_xgen_post_info
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for xGen Post Status
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5614.35 ▼0.001.54 ▲0.0139.65 ▼6.21
Dashboard /wp-admin2,208 ▲315.73 ▲0.0888.90 ▼2.0239.67 ▼6.72
Posts /wp-admin/edit.php2,116 ▲162.19 ▲0.1938.55 ▲2.0934.28 ▼2.31
Add New Post /wp-admin/post-new.php6,309 ▲4,78120.94 ▼2.11911.29 ▲274.4981.74 ▲29.68
Media Library /wp-admin/upload.php1,410 ▲74.24 ▼0.0197.90 ▼8.5443.83 ▼4.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie tables detected upon uninstall: 1 table
    • wp_xgen_post_info
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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
Please fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      require(ABSPATHWPINC/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/xgen-post-status/pe-main.php on line 20
    • > PHP Fatal error
      require(): Failed opening required 'ABSPATHWPINC/pluggable.php' (include_path='.:/usr/share/php') in wp-content/plugins/xgen-post-status/pe-main.php on line 20
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/xgen-post-status/pe-main.php on line 20
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/xgen-post-status/pe-main.php on line 20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% 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
These attributes need your attention:
  • Donate link: Invalid url: ""
You can take inspiration from this readme.txt

xgen-post-status/pe-main.php 92% from 13 tests

The main file in "xGen Post Status" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("xgen-post-status.php" instead of "pe-main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected591 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS14444388
PHP13847198
JavaScript1005

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity46.00
▷ Minimum class complexity46.00
▷ Maximum class complexity46.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
14 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-bg_flat_10_000000_40x100.png0.17KB0.08KB▼ 51.12%
css/images/ui-bg_glass_100_fdf5ce_1x400.png0.12KB0.16KB0.00%
css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png0.09KB0.14KB0.00%
css/images/ui-icons_ef8c08_256x240.png4.27KB4.11KB▼ 3.78%
css/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%