88% flopictime

Code Review | FloPicTime - Pic-Time & WordPress integration

WordPress plugin FloPicTime - Pic-Time & WordPress integration scored 88% from 54 tests.

About plugin

  • Plugin page: flopictime
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 5.8.1
  • First release: Nov 11, 2019
  • Latest release: Mar 17, 2021
  • Number of updates: 18
  • Update frequency: every 27.4 days
  • Top authors: flothemesplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active / 4,181 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.28MB] [CPU: ▼136.61ms] 75% from 4 tests

An overview of server-side resources used by FloPicTime - Pic-Time & WordPress integration
Please fix the following
  • CPU: The total CPU usage must kept under 500.00ms (currently 2,803.31ms on /wp-admin/post-new.php?post_type=flo_pictime_gallery)
PageMemory (MB)CPU Time (ms)
Home /3.06 ▲0.3440.40 ▲17.05
Dashboard /wp-admin3.35 ▲0.3052.33 ▲8.58
Posts /wp-admin/edit.php3.40 ▲0.3049.36 ▲2.51
Add New Post /wp-admin/post-new.php5.72 ▲0.2997.89 ▼559.50
Media Library /wp-admin/upload.php3.24 ▲0.2434.58 ▲1.96
All FloPicTime Galleries /wp-admin/edit.php?post_type=flo_pictime_gallery3.364,730.96
Add New FloPicTime Gallery /wp-admin/post-new.php?post_type=flo_pictime_gallery3.352,803.31

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 42 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for FloPicTime - Pic-Time & WordPress integration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,757 ▲16115.95 ▲0.408.64 ▲0.8851.79 ▲6.86
Dashboard /wp-admin3,016 ▲825.87 ▼0.04155.91 ▲13.34109.17 ▼8.62
Posts /wp-admin/edit.php2,789 ▲502.69 ▲0.0066.74 ▼1.1095.10 ▲2.45
Add New Post /wp-admin/post-new.php1,665 ▼1821.58 ▲2.77282.82 ▼96.86124.26 ▲11.19
Media Library /wp-admin/upload.php1,857 ▲505.01 ▲0.01151.00 ▼20.88129.49 ▲5.22
All FloPicTime Galleries /wp-admin/edit.php?post_type=flo_pictime_gallery1,4693.9893.5779.17
Add New FloPicTime Gallery /wp-admin/post-new.php?post_type=flo_pictime_gallery2,0975.46160.42101.37

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/flopictime/public/partials/pictimewp-public-display.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/flopictime/admin/class-pictime-meta-box.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/flopictime/admin/partials/pictimewp-admin-display.php:17

User-side errors Passed 1 test

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


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: image proofing, pic-time

flopictime/pictimewp.php 85% from 13 tests

"FloPicTime - Pic-Time & WordPress integration" version 1.0.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("flopictime.php" instead of "pictimewp.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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 detected8,092 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity16.00
▷ Minimum class complexity1.00
▷ Maximum class complexity74.00
Average method complexity3.68
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
▷ Static methods1017.86%
▷ Public methods5191.07%
▷ Protected methods00.00%
▷ Private methods58.93%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.11MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/project_cover.png0.93KB0.88KB▼ 5.57%