84% wp-talks

Code Review | WP Talks

WordPress plugin WP Talks scored84%from 54 tests.

About plugin

  • Plugin page: wp-talks
  • Plugin version: 0.2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.1
  • WordPress version: 6.3.1
  • First release: Jan 18, 2015
  • Latest release: Apr 22, 2019
  • Number of updates: 6
  • Update frequency: every 259.2 days
  • Top authors: magicroundabout (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,169 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.12MB] [CPU: ▼6.65ms] Passed 4 tests

Server-side resources used by WP Talks
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1441.05 ▲0.31
Dashboard /wp-admin3.44 ▲0.0948.86 ▼15.67
Posts /wp-admin/edit.php3.49 ▲0.1346.76 ▼3.65
Add New Post /wp-admin/post-new.php6.02 ▲0.1391.14 ▼7.59
Media Library /wp-admin/upload.php3.36 ▲0.1335.55 ▲3.16
Add New Talk /wp-admin/post-new.php?post_type=wp_talks3.5158.14
Services /wp-admin/edit-tags.php?taxonomy=wp_talks_service&post_type=wp_talks3.3634.45
Talks /wp-admin/edit.php?post_type=wp_talks3.4034.84
Add New Talk Series /wp-admin/post-new.php?post_type=wp_talk_series3.4846.11
Speakers /wp-admin/edit-tags.php?taxonomy=wp_talks_speaker&post_type=wp_talks3.3635.99
Talk Series /wp-admin/edit.php?post_type=wp_talk_series3.4035.31
Topics /wp-admin/edit-tags.php?taxonomy=wp_talks_topic&post_type=wp_talks3.3533.30

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

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

Browser metrics Passed 4 tests

WP Talks: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲13513.30 ▼1.014.60 ▲2.9242.18 ▲3.32
Dashboard /wp-admin2,277 ▲865.85 ▲0.97104.66 ▲5.5043.92 ▲0.64
Posts /wp-admin/edit.php2,160 ▲712.01 ▲0.0033.87 ▼1.0534.48 ▲0.11
Add New Post /wp-admin/post-new.php1,588 ▲6823.11 ▼0.15674.05 ▲34.5557.73 ▲6.24
Media Library /wp-admin/upload.php1,456 ▲684.24 ▲0.0892.92 ▼4.3842.20 ▲0.57
Add New Talk /wp-admin/post-new.php?post_type=wp_talks2,6497.99179.4268.22
Services /wp-admin/edit-tags.php?taxonomy=wp_talks_service&post_type=wp_talks1,3302.1526.1728.10
Talks /wp-admin/edit.php?post_type=wp_talks1,1701.9631.5132.26
Add New Talk Series /wp-admin/post-new.php?post_type=wp_talk_series2,2607.63156.9053.72
Speakers /wp-admin/edit-tags.php?taxonomy=wp_talks_speaker&post_type=wp_talks1,3332.1527.7826.75
Talk Series /wp-admin/edit.php?post_type=wp_talk_series1,1302.0030.7029.09
Topics /wp-admin/edit-tags.php?taxonomy=wp_talks_topic&post_type=wp_talks1,3022.1525.6126.97

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-talks/sample-templates/single-wp_talks.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_template_part() in wp-content/plugins/wp-talks/sample-templates/taxonomy-wp_talks_topic.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_template_part() in wp-content/plugins/wp-talks/sample-templates/taxonomy-wp_talks_speaker.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-talks/sample-templates/archive-wp_talks.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_template_part() in wp-content/plugins/wp-talks/sample-templates/taxonomy-wp_talks_service.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-talks/wp-talks.php:137

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

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:
  • Plugin Name: You should set the name of your plugin on the first line ( === wp-talks === )
Please take inspiration from this readme.txt

wp-talks/wp-talks.php 92% from 13 tests

"WP Talks" version 0.2.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 167 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected521 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP587118456
CSS10165

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods1100.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions1178.57%
▷ Anonymous functions321.43%
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
1 PNG file occupies 0.05MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/talks-menu-icon.png48.42KB0.44KB▼ 99.09%