74% camptix-network-tools

Code Review | CampTix Network Tools

WordPress plugin CampTix Network Tools scored 74% from 54 tests.

About plugin

  • Plugin page: camptix-network-t...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.3
  • WordPress version: 5.9.2
  • First release: Jun 19, 2013
  • Latest release: Aug 6, 2015
  • Number of updates: 34
  • Update frequency: every 49.9 days
  • Top authors: iandunn (94.12%)coreymckrill (8.82%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 3,245 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

This is a short check of server-side resources used by CampTix Network Tools
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0353.53 ▲2.34
Dashboard /wp-admin3.44 ▲0.0334.14 ▼3.60
Posts /wp-admin/edit.php3.67 ▲0.0338.86 ▲2.90
Add New Post /wp-admin/post-new.php6.90 ▼0.0794.78 ▼1,188.59
Media Library /wp-admin/upload.php3.32 ▲0.0225.30 ▲2.18

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: 1 new table, 1 new option
New tables
wp_camptix_log
New WordPress options
camptix_dashboard_timestamp

Browser metrics Passed 4 tests

An overview of browser requirements for CampTix Network Tools
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲916.16 ▲0.365.83 ▼0.152.34 ▼0.45
Dashboard /wp-admin2,895 ▲416.14 ▼0.07132.35 ▼4.82157.96 ▼3.06
Posts /wp-admin/edit.php2,688 ▼63.23 ▼0.0064.20 ▼1.22139.09 ▼4.40
Add New Post /wp-admin/post-new.php1,711 ▲5021.39 ▲5.73437.62 ▲13.94159.17 ▲11.90
Media Library /wp-admin/upload.php1,698 ▼05.53 ▼0.01132.18 ▼14.59185.86 ▲1.53

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie tables were found after uninstall: 1 table
    • wp_camptix_log
  • Zombie WordPress options were found after uninstall: 1 option
    • camptix_dashboard_timestamp

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)
Good news, no errors were detected

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
Please fix the following items
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/camptix-network-tools/includes/class-camptix-network-log-list-table.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/camptix-network-tools/includes/class-camptix-network-attendees-list-table.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/camptix-network-tools/includes/class-camptix-network-dashboard-list-table.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/camptix-network-tools/camptix-network-tools.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/camptix-network-tools/network-dashboard.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Lookup attendee details)
You can look at the official readme.txt

camptix-network-tools/camptix-network-tools.php Passed 13 tests

The principal PHP file in "CampTix Network Tools" v. 0.2 is loaded by WordPress automatically on each request
78 characters long description:
Tools for managing CampTix installations across a WordPress Multisite network.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected922 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP519685922

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity27.80
▷ Minimum class complexity11.00
▷ Maximum class complexity61.00
Average method complexity3.23
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods60
▷ Static methods00.00%
▷ Public methods5998.33%
▷ Protected methods11.67%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.29MB with 0.19MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png190.66KB59.07KB▼ 69.02%
screenshot-3.png19.32KB7.19KB▼ 62.78%
screenshot-1.png63.98KB20.21KB▼ 68.41%
screenshot-4.png18.55KB6.59KB▼ 64.47%