56% pressforward

Code Review | PressForward

WordPress plugin PressForward scored56%from 54 tests.

About plugin

  • Plugin page: pressforward
  • Plugin version: 5.5.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.2
  • WordPress version: 6.3.1
  • First release: May 30, 2014
  • Latest release: May 17, 2023
  • Number of updates: 135
  • Update frequency: every 24.8 days
  • Top authors: AramZS (73.33%)boonebgorges (27.41%)

Code review

54 tests

User reviews

11 reviews

Install metrics

400+ active /45,049 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲4.96MB] [CPU: ▲45.68ms] Passed 4 tests

An overview of server-side resources used by PressForward
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /8.36 ▲4.9079.06 ▲37.60
Dashboard /wp-admin8.28 ▲4.9796.25 ▲47.32
Posts /wp-admin/edit.php8.34 ▲4.9896.68 ▲44.39
Add New Post /wp-admin/post-new.php11.33 ▲5.44180.81 ▲86.43
Media Library /wp-admin/upload.php8.23 ▲4.9984.94 ▲53.41
Feed Item Tags /wp-admin/edit-tags.php?taxonomy=pf_feed_item_tag&post_type=pf_feed_item8.2283.13
Tools /wp-admin/admin.php?page=pf-tools8.3188.03
View Log /wp-admin/admin.php?page=pf-debugger8.2089.45
Nominated /wp-admin/admin.php?page=pf-review8.2291.00
All Content /wp-admin/admin.php?page=pf-menu8.2388.77
Subscribed Feeds /wp-admin/edit.php?post_type=pf_feed8.2787.94
Folders /wp-admin/edit-tags.php?taxonomy=pf_feed_category8.2282.38
Preferences /wp-admin/admin.php?page=pf-options8.2590.07
Foo /wp-admin/admin.php?page=pf-foo7.9465.49
Add Feeds /wp-admin/admin.php?page=pf-feeder8.3186.06

Server storage [IO: ▲12.74MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 590 new files
Database: 1 new table, 25 new options
New tables
wp_pf_relationships
New WordPress options
widget_recent-comments
pf_rss-out_settings
pf_retrieval_chunks_begun
pf_feeds_go_switch
pf_comments_settings
widget_recent-posts
pf_system_jwt_key
pf_foo_settings
pf_foo_enable
pressforward_migrated_530_source_statements
...

Browser metrics Passed 4 tests

Checking browser requirements for PressForward
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,922 ▲16513.25 ▼0.991.75 ▼0.2042.88 ▼6.08
Dashboard /wp-admin2,296 ▲1115.89 ▲0.77116.95 ▲13.0892.16 ▲45.86
Posts /wp-admin/edit.php2,167 ▲783.07 ▲1.0672.70 ▲32.0539.32 ▲3.51
Add New Post /wp-admin/post-new.php1,730 ▲19421.87 ▼1.24720.24 ▲21.5655.89 ▲0.33
Media Library /wp-admin/upload.php1,451 ▲634.22 ▼0.02112.74 ▼1.8580.77 ▲30.00
Feed Item Tags /wp-admin/edit-tags.php?taxonomy=pf_feed_item_tag&post_type=pf_feed_item1,3062.1835.7432.03
Tools /wp-admin/admin.php?page=pf-tools1,1153.4677.5171.90
View Log /wp-admin/admin.php?page=pf-debugger9583.4866.9324.42
Nominated /wp-admin/admin.php?page=pf-review1,1343.7580.2633.88
All Content /wp-admin/admin.php?page=pf-menu1,1693.6481.7372.42
Subscribed Feeds /wp-admin/edit.php?post_type=pf_feed1,2282.9469.2838.07
Folders /wp-admin/edit-tags.php?taxonomy=pf_feed_category1,3412.2237.6436.24
Preferences /wp-admin/admin.php?page=pf-options2,0233.2860.4044.81
Foo /wp-admin/admin.php?page=pf-foo280.440.074.15
Add Feeds /wp-admin/admin.php?page=pf-feeder1,3984.5276.6831.78

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_pf_relationships
  • This plugin did not uninstall successfully, leaving 25 options in the database
    • pf_debugger_settings
    • pf_feeds_go_switch
    • pf_retrieval_chunks_begun
    • can_compress_scripts
    • pf_jwt_users
    • pf_opml-subscribe_settings
    • pf_retrieval_cycles_ended
    • theysaidso_admin_options
    • pf_retrieval_cycles_begun
    • pf_relationships_db_version
    • ...

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 728 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pf-feeder
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
    Undefined offset: 0
  • 728 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pf-feeder
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
    Trying to get property 'guid' of non-object
  • 2909 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pf-feeder
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
    Trying to get property 'ID' of non-object
  • 727 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pf-feeder
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
    Trying to get property 'post_title' of non-object

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/pressforward/vendor/mattwright/urlresolver/tools/resolve_url.php
    • > /wp-content/plugins/pressforward/vendor/masterminds/html5/bin/entities.php
  • 156× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/pressforward/vendor/psr/log/Psr/Log/NullLogger.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'Intraxia\\Jaxion\\Contract\\Core\\HasActions' not found in wp-content/plugins/pressforward/Core/Utility/Relate.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/pressforward/parts/pf-tools/tab-reset-refresh.tpl.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Intraxia\\Jaxion\\Assets\\ServiceProvider' not found in wp-content/plugins/pressforward/Core/Providers/AdminAreaServiceProvider.php:28
    • > PHP Fatal error
      Uncaught Error: Interface 'Intraxia\\Jaxion\\Contract\\Core\\Loader' not found in wp-content/plugins/pressforward/Libraries/Jaxion/src/Core/Loader.php:17
    • > PHP Fatal error
      Trait 'fivefilters\\Readability\odes\odeTrait' not found in wp-content/plugins/pressforward/vendor/fivefilters/readability.php/src/Nodes/DOM/DOMDocumentFragment.php on line 7
    • > PHP Fatal error
      Uncaught Error: Interface 'PressForward\\Interfaces\\Items' not found in wp-content/plugins/pressforward/Controllers/PF_to_WP_Posts.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'Intraxia\\Jaxion\\Contract\\Core\\HasActions' not found in wp-content/plugins/pressforward/Core/API/MetaCheckEndpoint.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/pressforward/constants.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'Intraxia\\Jaxion\\Contract\\Axolotl\\Serializes' not found in wp-content/plugins/pressforward/Libraries/Jaxion/src/Axolotl/Model.php:24

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pf-menu
    • > Console-api (severe) in wp-content/plugins/pressforward//build/scroll.js?ver=ed432387daed89befb06+0:6349
    Bad InfiniteScroll path option. Next link not found: .feednext a
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pf-menu
    • > Console-api (severe) in wp-content/plugins/pressforward//build/scroll.js?ver=ed432387daed89befb06+0:4289
    Disabling InfiniteScroll
    • > GET request to /wp-admin/admin.php?page=pf-foo
    • > Network (severe)
    wp-admin/admin.php?page=pf-foo - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Too many tags (30 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Donate link: Please fix this invalid URI: ""
The official readme.txt might help

pressforward/pressforward.php 92% from 13 tests

The principal PHP file in "PressForward" v. 5.5.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 167 characters long)

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 plugin111,908 lines of code in 507 files:
LanguageFilesBlank linesComment linesLines of code
PHP3037,89920,98142,845
CSS358,73726639,051
JavaScript775,7093,69621,088
Markdown341,05802,902
PO File21,0051,1462,476
Sass2235261,757
JSON17001,438
YAML84614236
XML51076
make17020
SVG10012
Dockerfile1394
Bourne Shell1203

PHP code Passed 2 tests

This is a short overview 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.39
Average class complexity19.93
▷ Minimum class complexity1.00
▷ Maximum class complexity388.00
Average method complexity3.58
▷ Minimum method complexity1.00
▷ Maximum method complexity87.00
Code structure
Namespaces45
Interfaces51
Traits3
Classes208
▷ Abstract classes52.40%
▷ Concrete classes20397.60%
▷ Final classes157.39%
Methods2,218
▷ Static methods2049.20%
▷ Public methods1,92186.61%
▷ Protected methods1275.73%
▷ Private methods1707.66%
Functions247
▷ Named functions9538.46%
▷ Anonymous functions15261.54%
Constants289
▷ Global constants7726.64%
▷ Class constants21273.36%
▷ Public constants16577.83%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
18 PNG files occupy 0.12MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Libraries/twitter-bootstrap/img/glyphicons-halflings-white.png8.57KB9.20KB0.00%
pressforward-16-dark.png3.41KB0.73KB▼ 78.72%
assets/icon-256x256.png1.97KB1.96KB▼ 0.74%
pressforward.png3.54KB0.62KB▼ 82.58%
assets/images/pressforward-single-licon.png20.01KB0.56KB▼ 97.20%